Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2035 Lượt xem

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?  

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 24
1257
3
thg 8 23
3868
1
thg 2 23
2331
1
thg 10 22
3407
3
thg 7 22
2816