Skip to content

Commit 1fff9dd

Browse files
committed
fix toolbar permissions check
1 parent 3fb58df commit 1fff9dd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

administrator/components/com_users/views/debuggroup/view.html.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public function display($tpl = null)
9191
*/
9292
protected function addToolbar()
9393
{
94+
$canDo = JHelperContent::getActions('com_users');
95+
9496
JToolbarHelper::title(JText::sprintf('COM_USERS_VIEW_DEBUG_GROUP_TITLE', $this->group->id, $this->group->title), 'users groups');
9597
JToolbarHelper::cancel('group.cancel', 'JTOOLBAR_CLOSE');
9698

administrator/components/com_users/views/debuguser/view.html.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public function display($tpl = null)
9191
*/
9292
protected function addToolbar()
9393
{
94+
$canDo = JHelperContent::getActions('com_users');
95+
9496
JToolbarHelper::title(JText::sprintf('COM_USERS_VIEW_DEBUG_USER_TITLE', $this->user->id, $this->user->name), 'users user');
9597
JToolbarHelper::cancel('user.cancel', 'JTOOLBAR_CLOSE');
9698

0 commit comments

Comments
 (0)