修改权限判断流程

This commit is contained in:
Li Jianxuan 2013-05-09 03:55:46 +00:00
parent 8faf4836ee
commit 4b95fa48f5
1 changed files with 7 additions and 4 deletions

View File

@ -39,12 +39,15 @@ class Doi extends Zend_Controller_Plugin_Abstract
}
function update($data,$uuid,$uid=0){
if(!empty($uid))
{
include_once("data/Author.php");
$author = new Author($this->db);
if($author->checkAuthor($uuid,$uid)==false)
{
return "您没有权限";
}
}
$doi_info = $this->view($uuid);
if($doi_info == false)
{