permissions

package
v0.0.0-...-424a8ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAdmin

func IsAdmin(h *api.Handler) gin.HandlerFunc

func IsAdminUser

func IsAdminUser(userID uint64) bool

Check weather user is admin or not

func SetOwnData

func SetOwnData(h *api.Handler, data taskdata.Service) gin.HandlerFunc

SetOwnData set own data middleware

func SetOwnDraft

func SetOwnDraft(h *api.Handler, drafts draftservice.Service) gin.HandlerFunc

SetOwnDraft set own draft middleware

Types

type NotRequesterErr

type NotRequesterErr struct{}

func (NotRequesterErr) Error

func (err NotRequesterErr) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL