mirror of
https://github.com/zyx0814/dzzoffice.git
synced 2025-01-09 04:17:42 +08:00
修复给分享的文件赋予了全部权限问题 (#260)
This commit is contained in:
parent
394451f578
commit
25acf615bf
@ -161,7 +161,7 @@ class perm_check{
|
|||||||
//$arr=array('uid','gid','desktop');其中这几项必须
|
//$arr=array('uid','gid','desktop');其中这几项必须
|
||||||
function checkperm($action,$arr,$bz=''){ //检查某个图标是否有权限;
|
function checkperm($action,$arr,$bz=''){ //检查某个图标是否有权限;
|
||||||
global $_G;
|
global $_G;
|
||||||
if ($arr['preview']) {
|
if ($arr['preview'] && ($action=='read') || $action=='copy' || $action=='download') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if($_G['uid']<1){ //游客没有权限
|
if($_G['uid']<1){ //游客没有权限
|
||||||
|
Loading…
Reference in New Issue
Block a user