* Code for task #5162.

This commit is contained in:
chenfeiCF
2018-12-04 14:46:34 +08:00
parent ae1466a9d4
commit d4b4e911c0
4 changed files with 20 additions and 5 deletions
+14 -1
View File
@@ -167,7 +167,7 @@ class commonModel extends model
if($this->loadModel('user')->isLogon() or ($this->app->company->guest and $this->app->user->account == 'guest'))
{
if(stripos($method, 'ajax') !== false) return true;
if(stripos($method, 'downnotify') !== false) return true;
if(stripos($method, 'downloadClient') !== false) return true;
if($module == 'block' and $method == 'main') return true;
if($module == 'misc' and $method == 'changelog') return true;
if($module == 'tutorial') return true;
@@ -689,6 +689,19 @@ class commonModel extends model
}
}
/**
* Print the link for zentao client.
*
* @static
* @access public
* @return void
*/
public static function printClientLink()
{
global $lang;
echo html::a(helper::createLink('misc', 'downloadClient'), "<i class='icon-bell'></i>", '', "title='$lang->downloadClient' class='text-primary iframe' data-width='400'") . ' &nbsp; ';
}
/**
* Print QR code Link.
*