Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2044 มุมมอง

I created a file management module where admin users can create folder model objects and their corresponding attachments. admins should give user permission of a specific folder to related users. those users should not be able to access other folder objects. I know I can create a group for each folder object but this is not efficient at all. Do you guys have any ideas?  

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

The solution I chose was to implement it from scratch by overriding read, create, write and unlink methods to give access based on the user and give access error when user doesn't have permission.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 24
1264
3
ส.ค. 23
3881
Group access permissings wrong แก้ไขแล้ว
1
ก.พ. 23
2339
1
ต.ค. 22
3408
3
ก.ค. 22
2821