approval permissions

This commit is contained in:
Matthew Barbour 2019-10-14 13:43:49 -05:00 committed by Rogue Ralsha
parent c2d6f1a5fa
commit 2b46ede098
2 changed files with 8 additions and 0 deletions

View file

@ -81,4 +81,7 @@ abstract class Permissions
public const POOLS_ADMIN = "pools_admin"; public const POOLS_ADMIN = "pools_admin";
public const TIPS_ADMIN = "tips_admin"; public const TIPS_ADMIN = "tips_admin";
public const CRON_ADMIN = "cron_admin"; public const CRON_ADMIN = "cron_admin";
public const APPROVE_IMAGE = "approve_image";
public const APPROVE_COMMENT = "approve_comment";
} }

View file

@ -151,6 +151,9 @@ new UserClass("base", null, [
Permissions::POOLS_ADMIN => false, Permissions::POOLS_ADMIN => false,
Permissions::TIPS_ADMIN => false, Permissions::TIPS_ADMIN => false,
Permissions::CRON_ADMIN => false, Permissions::CRON_ADMIN => false,
Permissions::APPROVE_IMAGE => false,
Permissions::APPROVE_COMMENT => false,
]); ]);
new UserClass("anonymous", "base", [ new UserClass("anonymous", "base", [
@ -228,6 +231,8 @@ new UserClass("admin", "base", [
Permissions::POOLS_ADMIN => true, Permissions::POOLS_ADMIN => true,
Permissions::TIPS_ADMIN => true, Permissions::TIPS_ADMIN => true,
Permissions::CRON_ADMIN => true, Permissions::CRON_ADMIN => true,
Permissions::APPROVE_IMAGE => true,
Permissions::APPROVE_COMMENT => true,
]); ]);
new UserClass("hellbanned", "user", [ new UserClass("hellbanned", "user", [