mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
allow the post_mail permission to work independend from the send_stream/post_comment permissions and leave the post_mail perm limit at PERMS_SPECIFIC for the public channel role - issue #1951
This commit is contained in:
@@ -38,7 +38,6 @@ class PermissionRoles {
|
||||
];
|
||||
$ret['limits'] = PermissionLimits::Std_Limits();
|
||||
$ret['limits']['post_comments'] = PERMS_AUTHED;
|
||||
$ret['limits']['post_mail'] = PERMS_AUTHED;
|
||||
$ret['limits']['post_like'] = PERMS_AUTHED;
|
||||
$ret['limits']['chat'] = PERMS_AUTHED;
|
||||
break;
|
||||
|
||||
@@ -2847,9 +2847,7 @@ class Activity {
|
||||
}
|
||||
|
||||
if (intval($item['item_private']) === 2) {
|
||||
if (perm_is_allowed($channel['channel_id'], $observer_hash, 'post_mail')) {
|
||||
$allowed = true;
|
||||
}
|
||||
$allowed = perm_is_allowed($channel['channel_id'], $observer_hash, 'post_mail');
|
||||
}
|
||||
|
||||
if ($is_sys_channel) {
|
||||
|
||||
@@ -1833,9 +1833,7 @@ class Libzot {
|
||||
}
|
||||
|
||||
if (intval($arr['item_private']) === 2) {
|
||||
if (!perm_is_allowed($channel['channel_id'], $sender, 'post_mail')) {
|
||||
$allowed = false;
|
||||
}
|
||||
$allowed = perm_is_allowed($channel['channel_id'], $sender, 'post_mail');
|
||||
}
|
||||
|
||||
if (!$allowed) {
|
||||
|
||||
Reference in New Issue
Block a user