motion

package
v0.0.0-...-d450093 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func RequiredMotions(data json.RawMessage) (map[int]bool, string, error)

RequiredMotions returns the user ids of a motion element.

func Restrict

func Restrict(r required) restricter.ElementFunc

Restrict restricts motions/motion.

func Slide

func Slide() projector.CallableFunc

Slide renders a a motion.

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.

Jump to

Keyboard shortcuts

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