From 4cae285e92f0c3063e4e37493cef8f01495ebdc8 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 29 Dec 2018 02:56:45 +0100 Subject: [PATCH] Renamed one the name of the forum read perms set to be more fitting with the write one. --- src/Forum/forum.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Forum/forum.php b/src/Forum/forum.php index baf54356..1f5fd68b 100644 --- a/src/Forum/forum.php +++ b/src/Forum/forum.php @@ -19,7 +19,7 @@ define('MSZ_FORUM_PERM_DELETE_POST', 1 << 23); define('MSZ_FORUM_PERM_DELETE_ANY_POST', 1 << 24); // shorthands, never use these to SET!!!!!!! -define('MSZ_FORUM_PERM_CAN_LIST_FORUM', MSZ_FORUM_PERM_LIST_FORUM | MSZ_FORUM_PERM_VIEW_FORUM); +define('MSZ_FORUM_PERM_SET_READ', MSZ_FORUM_PERM_LIST_FORUM | MSZ_FORUM_PERM_VIEW_FORUM); define( 'MSZ_FORUM_PERM_SET_WRITE', MSZ_FORUM_PERM_CREATE_TOPIC @@ -114,7 +114,7 @@ function forum_get_root_categories(int $userId): array ", MSZ_FORUM_TYPE_CATEGORY, forum_perms_get_user_sql('forum', 'f.`forum_id`'), - MSZ_FORUM_PERM_CAN_LIST_FORUM + MSZ_FORUM_PERM_SET_READ )); $getCategories->bindValue('perm_user_id_user', $userId); $getCategories->bindValue('perm_user_id_role', $userId); @@ -132,7 +132,7 @@ function forum_get_root_categories(int $userId): array MSZ_FORUM_ROOT, MSZ_FORUM_TYPE_CATEGORY, forum_perms_get_user_sql('forum', '`forum_id`'), - MSZ_FORUM_PERM_CAN_LIST_FORUM + MSZ_FORUM_PERM_SET_READ )); $getRootForumCount->bindValue('perm_user_id_user', $userId); $getRootForumCount->bindValue('perm_user_id_role', $userId); @@ -342,7 +342,7 @@ function forum_get_children_query(bool $small = false): string MSZ_FORUM_ROOT, MSZ_FORUM_TYPE_CATEGORY, forum_perms_get_user_sql('forum', 'f.`forum_id`'), - MSZ_FORUM_PERM_CAN_LIST_FORUM + MSZ_FORUM_PERM_SET_READ ); }