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