修改权限判断流程
This commit is contained in:
parent
8faf4836ee
commit
4b95fa48f5
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue