mirror of
https://github.com/zyx0814/dzzoffice.git
synced 2025-01-07 03:16:58 +08:00
兼容preview 前缀
This commit is contained in:
parent
894d7edf5b
commit
48a2b882f7
@ -161,6 +161,9 @@ class perm_check{
|
||||
//$arr=array('uid','gid','desktop');其中这几项必须
|
||||
function checkperm($action,$arr,$bz=''){ //检查某个图标是否有权限;
|
||||
global $_G;
|
||||
if($arr['preview'] && $action === 'read'){
|
||||
return true;
|
||||
}
|
||||
if($_G['uid']<1){ //游客没有权限
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user