mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
do not show link to EditUserData if user may not edit himself
This commit is contained in:
parent
bd396e1c69
commit
c721c05d6d
|
@ -906,7 +906,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
echo "<div class=\"nav-collapse col2\">\n";
|
||||
|
||||
$menuitems = array();
|
||||
if ($accessobject->check_view_access('EditUserData') || !$this->params['disableselfedit'])
|
||||
if ($accessobject->check_view_access('EditUserData') && !$this->params['disableselfedit'])
|
||||
$menuitems['edit_user_details'] = array('link'=>$this->params['settings']->_httpRoot."out/out.EditUserData.php", 'label'=>getMLText('edit_user_details'));
|
||||
|
||||
if (!$this->params['user']->isAdmin())
|
||||
|
|
|
@ -823,7 +823,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$accessobject = $this->params['accessobject'];
|
||||
|
||||
$menuitems = array();
|
||||
if ($accessobject->check_view_access('EditUserData') || !$this->params['disableselfedit'])
|
||||
if ($accessobject->check_view_access('EditUserData') && !$this->params['disableselfedit'])
|
||||
$menuitems['edit_user_details'] = array('link'=>$this->params['settings']->_httpRoot."out/out.EditUserData.php", 'label'=>getMLText('edit_user_details'));
|
||||
|
||||
if (!$this->params['user']->isAdmin())
|
||||
|
|
Loading…
Reference in New Issue
Block a user