Skip to content

reference:Permission system

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

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
Backend Can access the backend 0 0 1 1
Backend Login Can login via the backend login 0 0 1 1
Backend About Can access the about page in the backend 0 0 0 1
Backend About Version Can view the version of USOC on the about page in the backend 0 0 0 1
Backend About Plugins Can view the installed plugins of USOC on the about page in the backend 0 0 0 1
Backend Settings Can change the settings in the backend 0 0 0 1
Backend Settings Advanced Can access the advanced settings page in the backend 0 0 0 1
Backend Settings Standard Can access the settings page in the backend 0 0 0 1
Backend User Can access the user edit page in the backend 0 0 0 1
Backend User Block Can block users on the edit page in the backend 0 0 0 1
Backend User Permission Can change user groups on the edit page in the backend 0 0 0 1
Backend User Search Can search users in the backend 0 0 0 1
Backend Create Can create new pages in the backend 0 0 1 1
Backend Edit Can edit pages in the backend 0 0 1 1
Backend Edit Own Can edit own pages in the backend 0 0 1 1
Backend Edit Others Can edit others pages in the backend 0 0 0 1
Backend Edit Change_online_status Can change the online status of pages in the backend 0 0 1 1
Backend Delete Can delete pages in the backend 0 0 0 1
Backend Delete Own Can delete own pages in the backend 0 0 0 1
Backend Delete Others Can delete others pages in the backend 0 0 0 1
Login Can access and view pages 1 1 1 1
Clone this wiki locally