Yogstation 13 - Modules - TypesVar Details - Proc Details

/datum/permissions_controller

Vars

admin_datumsAssociated list of ckey -> admin datums
adminsList of all admin clients
deadminsList of all deadmins
legacy_adminsAdmins loaded with the legacy system
legacy_ranksRanks loaded with the legacy system
protected_adminsAdmins that should not be allowed to be modified by the permissions panel
protected_ranksRanks that should not be allowed to be modified by the permissions panel

Procs

_load_permissions_forMost backends probably want to override this one Loads after legacy but before autoadmin/localhost If you woud like your backend to load before legacy, or after autoadmin/localhost Override the above function instead
add_adminThis proc prompts the user for the name that want to add Then uses should_add_admin(ckey) to determine if there is a reason that ckey shouldn't be added (usually due to already being adminned) make_admin(ckey) is then called to handle the actual adding
clear_adminsRemoves all admin status from everyone
compare_rightsReturns -1 if fewer, 0 if same, 1 if more
load_adminsPulls in admin data, for if the backend caches the admin data
load_permissions_forQueries the backend permissions system then creates their datum if they should have one Returns true if a datum was created
set_legacy_rankReturns true if the rank was changed
startClears any existing stored admins and (re) loads the data from the backend

Var Details

admin_datums

Associated list of ckey -> admin datums

admins

List of all admin clients

deadmins

List of all deadmins

legacy_admins

Admins loaded with the legacy system

legacy_ranks

Ranks loaded with the legacy system

protected_admins

Admins that should not be allowed to be modified by the permissions panel

protected_ranks

Ranks that should not be allowed to be modified by the permissions panel

Proc Details

_load_permissions_for

Most backends probably want to override this one Loads after legacy but before autoadmin/localhost If you woud like your backend to load before legacy, or after autoadmin/localhost Override the above function instead

add_admin

This proc prompts the user for the name that want to add Then uses should_add_admin(ckey) to determine if there is a reason that ckey shouldn't be added (usually due to already being adminned) make_admin(ckey) is then called to handle the actual adding

clear_admins

Removes all admin status from everyone

compare_rights

Returns -1 if fewer, 0 if same, 1 if more

load_admins

Pulls in admin data, for if the backend caches the admin data

load_permissions_for

Queries the backend permissions system then creates their datum if they should have one Returns true if a datum was created

set_legacy_rank

Returns true if the rank was changed

start

Clears any existing stored admins and (re) loads the data from the backend