cmllr / redundancy

Redundancy is a great lightweight software to create a cloud storage server without having too much load on your server.
GNU General Public License v3.0
27 stars 1 forks source link

Bug/improvement: Handling of limited permissions #147

Closed lebochequirit closed 9 years ago

lebochequirit commented 9 years ago

When defining a group eg. public with limited permissions

users in the group still can see and click the related menu entries. Suggested improvement: remove or at least grey out non-accessible entries Suggested improvement: do not let restricted users see what permissions they don't have :-)

When clicking on "share" as a user not allowed to share, an error message is displayed, but the share link is created anyway. Suggested bugfix: abort before creating a share link

When a share link is created, a file cannot be deleted (which is most likely an mySQL issue, deleting the entry in the FileSystem table also gives an error message complaining there's a relation to the SharedFileSystem table). Suggested bugfix: when deleting a file, check for shares and either silently remove them or ask for OK/abort.

Great work so far, I'm really happy with rdcy.

L.B.Q.R.

cmllr commented 9 years ago

This issue is now partially fixed.

The only exception is the Delete Button in the context menu. Currently I cannot hide it b/c of the used jQuery Plugin. Maybe @Phisherman can help?

cmllr commented 9 years ago

@lebochequirit I could not reproduce your second issue. Could you tell me more?

(I would be thankful if you could answer in #148 :) )

cmllr commented 9 years ago

The permission "AllowDeleteFromUserInterface" controls the vibibility of the delete button in the context menu.

Contextmenu

Please note: Only the permissions of the root group are currently automatically updated. To update other groups, please use the admin panel and save the groups (I am working on a better solution for 2.0).