* Hide preference and tutorial.

This commit is contained in:
tanghucheng
2022-02-28 15:18:57 +08:00
parent 974528bfbd
commit ccc11c4e4b
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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();
+1 -1
View File
@@ -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];
}
}