修改权限判断流程

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