Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Silverstripe:文件权限-仅对所有者和管理员可见_Php_Security_Content Management System_Silverstripe - Fatal编程技术网

Php Silverstripe:文件权限-仅对所有者和管理员可见

Php Silverstripe:文件权限-仅对所有者和管理员可见,php,security,content-management-system,silverstripe,Php,Security,Content Management System,Silverstripe,我正在尝试更改文件,使其仅由文件所有者和站点范围的管理员可见 我尝试了“secureassets”模块,虽然它很好,但我需要能够在上传时保护文件本身。我是否可以访问特定的函数来设置文件的可见性?您的意思是,您不能直接通过Web服务器访问文件,只能在登录并具有正确权限时通过SilverStripe控制器访问文件?嘿@wmk,谢谢您的回复。是的,对不起,这是我要找的更准确的描述。好吧,这就是secureassets模块的用途。我还没试过。。。您应该通过apache上的.htaccess阻止直接访问,

我正在尝试更改文件,使其仅由文件所有者和站点范围的管理员可见


我尝试了“secureassets”模块,虽然它很好,但我需要能够在上传时保护文件本身。我是否可以访问特定的函数来设置文件的可见性?

您的意思是,您不能直接通过Web服务器访问文件,只能在登录并具有正确权限时通过SilverStripe控制器访问文件?嘿@wmk,谢谢您的回复。是的,对不起,这是我要找的更准确的描述。好吧,这就是secureassets模块的用途。我还没试过。。。您应该通过apache上的.htaccess阻止直接访问,并通过控制器对所有请求进行隧道传输。