[COMPONENT][Group] More flexible member roles than only isAdmin
Refactor terminology of canAdmin to match current roles system
This commit is contained in:
@@ -76,7 +76,7 @@ class Group extends Component
|
||||
{
|
||||
$actor = Common::actor();
|
||||
$group = $vars['actor'];
|
||||
if (!\is_null($actor) && $group->isGroup() && $actor->canAdmin($group)) {
|
||||
if (!\is_null($actor) && $group->isGroup() && $actor->canModerate($group)) {
|
||||
$url = Router::url('group_settings', ['id' => $group->getId()]);
|
||||
$res[] = HTML::html(['a' => ['attrs' => ['href' => $url, 'title' => _m('Edit group settings'), 'class' => 'profile-extra-actions'], _m('Group settings')]]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user