approval permissions
This commit is contained in:
parent
c2d6f1a5fa
commit
2b46ede098
2 changed files with 8 additions and 0 deletions
|
@ -81,4 +81,7 @@ abstract class Permissions
|
|||
public const POOLS_ADMIN = "pools_admin";
|
||||
public const TIPS_ADMIN = "tips_admin";
|
||||
public const CRON_ADMIN = "cron_admin";
|
||||
public const APPROVE_IMAGE = "approve_image";
|
||||
public const APPROVE_COMMENT = "approve_comment";
|
||||
|
||||
}
|
||||
|
|
|
@ -151,6 +151,9 @@ new UserClass("base", null, [
|
|||
Permissions::POOLS_ADMIN => false,
|
||||
Permissions::TIPS_ADMIN => false,
|
||||
Permissions::CRON_ADMIN => false,
|
||||
|
||||
Permissions::APPROVE_IMAGE => false,
|
||||
Permissions::APPROVE_COMMENT => false,
|
||||
]);
|
||||
|
||||
new UserClass("anonymous", "base", [
|
||||
|
@ -228,6 +231,8 @@ new UserClass("admin", "base", [
|
|||
Permissions::POOLS_ADMIN => true,
|
||||
Permissions::TIPS_ADMIN => true,
|
||||
Permissions::CRON_ADMIN => true,
|
||||
Permissions::APPROVE_IMAGE => true,
|
||||
Permissions::APPROVE_COMMENT => true,
|
||||
]);
|
||||
|
||||
new UserClass("hellbanned", "user", [
|
||||
|
|
Reference in a new issue