Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Role ¶
type Role string
const ( Photographer Role = "Photographer" Manager Role = "Manager" ProgrammeEditor Role = "Programme Editor" LeagueSecretary Role = "League Secretary" Treasurer Role = "Treasurer" SafeguardingOfficer Role = "Safeguarding Officer" ClubSecretary Role = "Club Secretary" Chairperson Role = "Chairperson" Webmaster Role = "Webmaster" )
func (Role) CanEdit ¶
CanEdit reports whether the role may manage site content (everyone except Managers and Photographers), matching RequireNotManagerNotPhotographer.
func (Role) CanManageGallery ¶
CanManageGallery reports whether the role may add or remove gallery images, matching RequireNotManager.
func (Role) CanManagePlayers ¶
CanManagePlayers reports whether the role may add, edit and remove players and see their dates of birth: editors other than Programme Editors, who get a cut-down players list instead.
func (Role) IsClubSecretaryHigher ¶
IsClubSecretaryHigher matches RequireClubSecretaryHigher.
Click to show internal directories.
Click to hide internal directories.