cryptomator / hub

Cryptomator Hub helps you manage vaults in large teams
GNU Affero General Public License v3.0
36 stars 8 forks source link

Hide the 'Archive Vault' button for admin users without ownership rights, or allow admins to actually do this #283

Open SailReal opened 1 month ago

SailReal commented 1 month ago

Please agree to the following

Summary

In the vault details, hide "Archive Vault" button for admin users without ownershop rights

System Setup

- Hub: 1.3.4
- Keycloak: x
- Cryptomator (Desktop/Android/iOS): y

Steps to Reproduce

  1. Create user foo
  2. Give foo admin privileges
  3. Open in Hub vault bar which you can unlock but don't have ownership permission

Expected Behavior

Actual Behavior

image

Reproducibility

Always

Relevant Log Output

No response

Anything else?

https://github.com/cryptomator/hub/blob/194a50ce6dd317359e4e9be389957fe1fff8b95c/backend/src/main/java/org/cryptomator/hub/api/VaultResource.java#L385-L397