* finish task #2757.

This commit is contained in:
wangyidong
2016-11-22 14:21:05 +08:00
parent 40818f0779
commit e549d7f015
7 changed files with 21 additions and 5 deletions
+1
View File
@@ -21,6 +21,7 @@ class tutorialModel extends model
{
$account = $this->app->user->account;
if($account == 'guest') return false;
if(!empty($this->app->user->modifyPassword)) return false;
$count = $this->dao->select('count(*) as count')->from(TABLE_ACTION)->where('actor')->eq($account)->fetch('count');
if($count < 10) return true;