* Hide preference and tutorial.
This commit is contained in:
@@ -117,7 +117,7 @@ class control extends baseControl
|
||||
if($this->app->getModuleName() == 'my' and $this->app->getMethodName() == 'changepassword') return true;
|
||||
if($this->app->getModuleName() == 'my' and $this->app->getMethodName() == 'preference') return true;
|
||||
|
||||
if(!isset($this->config->preferenceSetted))
|
||||
if(!isset($this->config->preferenceSetted) and $this->config->vision == 'rnd')
|
||||
{
|
||||
$this->locate(helper::createLink('my', 'preference'));
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
(function()
|
||||
{
|
||||
if(showFeatures)
|
||||
if(showFeatures && vision == 'rnd')
|
||||
{
|
||||
/* Show features dialog. */
|
||||
new $.zui.ModalTrigger({url: $.createLink('misc', 'features'), type: 'iframe', width: 900, showHeader: false, backdrop: 'static'}).show();
|
||||
|
||||
@@ -458,7 +458,7 @@ class userModel extends model
|
||||
$prev['dept'] = $data[$i]->dept;
|
||||
$prev['role'] = $data[$i]->role;
|
||||
$prev['group'] = $data[$i]->group;
|
||||
$prev['visions'] = $users->visions[$i];
|
||||
$prev['visions'] = $visions;
|
||||
$prev['password'] = $users->password[$i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user