Renamed one the name of the forum read perms set to be more fitting with the write one.
This commit is contained in:
parent
cbd4ae24e6
commit
4cae285e92
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue