Documentation ¶
Index ¶
- func GetUserLevel(ds projector.Datastore, uid int) (string, error)
- func GetUserName(ds projector.Datastore, uid int) ([]byte, error)
- func GetUserShortName(ds projector.Datastore, uid int) ([]byte, error)
- func PersonalNoteRestrict(uid int, data json.RawMessage) (json.RawMessage, error)
- func Restrict(r restricter.HasPermer) restricter.ElementFunc
- func Slide() projector.CallableFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserLevel ¶
GetUserLevel returns the structre level for user id as json.
func GetUserName ¶
GetUserName returns the display name for an user id.
func GetUserShortName ¶
GetUserShortName returns the short display name for an user id (name without structure_level)
func PersonalNoteRestrict ¶
func PersonalNoteRestrict(uid int, data json.RawMessage) (json.RawMessage, error)
PersonalNoteRestrict is the restricter for users/personal_note.
func Restrict ¶
func Restrict(r restricter.HasPermer) restricter.ElementFunc
Restrict handels restrictions of users/user elements.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.