Documentation ¶
Index ¶
- Constants
- func BlockRestrict(r restricter.HasPermer) restricter.ElementFunc
- func ChangeRecommendationRestrict(r restricter.HasPermer) restricter.ElementFunc
- func CommentSectionRestrict(r required) restricter.ElementFunc
- func RequiredMotions(data json.RawMessage) (map[int]bool, string, error)
- func Restrict(r required) restricter.ElementFunc
- func Slide() projector.CallableFunc
- func SlideMotionBlock() projector.CallableFunc
- func SlideMotionPoll() projector.CallableFunc
Constants ¶
View Source
const ( // CanSee is the read permission for motions. CanSee = "motions.can_see" // CanManage is the manage permission for motions. CanManage = "motions.can_manage" // CanManagePolls is the manage permission for motion polls CanManagePolls = "motions.can_manage_polls" )
Variables ¶
This section is empty.
Functions ¶
func BlockRestrict ¶
func BlockRestrict(r restricter.HasPermer) restricter.ElementFunc
BlockRestrict restricts motions/motion-block.
func ChangeRecommendationRestrict ¶
func ChangeRecommendationRestrict(r restricter.HasPermer) restricter.ElementFunc
ChangeRecommendationRestrict restricts motions/motion-change-recommendation.
func CommentSectionRestrict ¶
func CommentSectionRestrict(r required) restricter.ElementFunc
CommentSectionRestrict restricts motions/motion-comment-section.
func RequiredMotions ¶
RequiredMotions returns the user ids of a motion element.
func SlideMotionBlock ¶
func SlideMotionBlock() projector.CallableFunc
SlideMotionBlock renders a an motion block.
func SlideMotionPoll ¶
func SlideMotionPoll() projector.CallableFunc
SlideMotionPoll renders slides for motions/motion-poll.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.