From 2b46ede09849aa84b6c3f566824c0ea6060998cd Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 14 Oct 2019 13:43:49 -0500 Subject: [PATCH] approval permissions --- core/permissions.php | 3 +++ core/userclass.php | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/core/permissions.php b/core/permissions.php index e546236b..66b92b7c 100644 --- a/core/permissions.php +++ b/core/permissions.php @@ -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"; + } diff --git a/core/userclass.php b/core/userclass.php index 2207fa63..f474d154 100644 --- a/core/userclass.php +++ b/core/userclass.php @@ -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", [