修复给分享的文件赋予了全部权限问题 (#260)

This commit is contained in:
小胡 2024-10-19 15:22:08 +08:00 committed by GitHub
parent 394451f578
commit 25acf615bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,7 +161,7 @@ class perm_check{
//$arr=array('uid','gid','desktop');其中这几项必须
function checkperm($action,$arr,$bz=''){ //检查某个图标是否有权限;
global $_G;
if ($arr['preview']) {
if ($arr['preview'] && ($action=='read') || $action=='copy' || $action=='download') {
return true;
}
if($_G['uid']<1){ //游客没有权限