media-manager-improvement
media-manager-improvement copied to clipboard
ACL state in client
Imo it would be a good idea to have some kind of ACL state in the client. The client should know, if the user is allowed to edit,view,move,download,delete,whatever-action an item. This adds versatility and the option to improve the UI. This does not mean that ACL is done on the client-side (it will be handled on server side), but i dont want the client to send a request to the server and always get a NotAuthorized response. I want to hide/disable the action buttons, when the user is not allowed to do the particular action.
We could return item permissions along with the server response for each item and/or we can return a user object with the users permissions on a special request.
Item permissions would look something like this:
{
name: "some-file",
...
permissions: {
can_edit: true,
can_view: true,
can_delete: true,
....
}
}
Do we allowed to change permissions of files also?
Not on the feature list atm
I'd do some experimentation on this first (e.g. how does acl work on already uploaded items, how does it scale given my experience is that Joomla's ACL is one of the least well scaling parts of the system)
Agree. A good UI/UX is not worth a bad performance. if we go with the per-item approach, we definitely need performance testing.