Skip to content

reference:Permission system

Aaron Junker edited this page Mar 20, 2021 · 8 revisions

This article is a stub.

Permission system

USOC has since Pb2.4Bfx0 a permission system that allows server admins to give some user groups rights to do certain things.

Usage

The default permissions are defined in localSettings.php and can get overwritten in configuration.php.

The permissions are split up in modules submodules and subsubmodules. If a module is deactivated all it's submodules and subsubmodules also get deactivated, even when they are activated.

Built-in groups

0 -> Visitor (Standard for not logged in users) 1 -> User (Standard for registred users) 2 -> Editor 3 -> Administrator

Built-in permissions

0 means deactivated and 1 means activated

Module Submodule Subsubmodule Description (the user...) Standard: Visitor Standard: User Standard: Editor Standard: Administrator
Login Can access normal login and register pages (Backend login can still get accessed) 1 0 0 0
Login Login Can access normal login page 1 0 0 0
Login Login 2FA Can login with 2fa 1 0 0 0
Login Login Google_login Can login with google account 1 0 0 0
Login Register Can access register page 1 0 0 0
Login Register Without_Mail Can register without an e-mail 0 0 0 0
Profile Can access profile page 0 1 1 1
Profile Change_password Can change his password 0 1 1 1
Profile Delete_account Can delete his account 0 1 1 1
Profile Add_2FA Can add 2FA to his account 0 1 1 1
Profile Add_google_login Can add his Google Account for log in to his account 0 1 1 1
Profile Show_profile_picture Can add and view his profile picture (over gravatar) 0 1 1 1

Clone this wiki locally