mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-27 21:28:12 +00:00
fix: 可见非共享文件夹的情况
This commit is contained in:
parent
77a3f2027e
commit
a4548e2cba
@ -353,7 +353,8 @@ class File extends AbstractModel
|
||||
*/
|
||||
public function getPermission(array $userids)
|
||||
{
|
||||
if (in_array($this->userid, $userids) || in_array($this->created_id, $userids)) {
|
||||
$validUserIds = array_filter($userids);
|
||||
if (in_array($this->userid, $validUserIds) || in_array($this->created_id, $validUserIds)) {
|
||||
// ① 自己的文件夹 或 自己创建的文件夹
|
||||
return 1000;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user