* 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

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'));
}