mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
feat(files_sharing): Hide external shares for users in excluded groups
- Added frontend check to hide link shares if, public sharing is disabled. Signed-off-by: nfebe <fenn25.fn@gmail.com> [skip ci]
This commit is contained in:
parent
33756535d7
commit
02eaabc5ae
1 changed files with 18 additions and 1 deletions
|
|
@ -148,7 +148,24 @@ export default {
|
|||
* @return {boolean}
|
||||
*/
|
||||
isSharedWithMe() {
|
||||
return Object.keys(this.sharedWithMe).length > 0
|
||||
return this.sharedWithMe !== null
|
||||
&& this.sharedWithMe !== undefined
|
||||
},
|
||||
|
||||
/**
|
||||
* Is link sharing allowed for the current user?
|
||||
*
|
||||
* @return {boolean}
|
||||
*/
|
||||
isLinkSharingAllowed() {
|
||||
const currentUser = getCurrentUser()
|
||||
if (!currentUser) {
|
||||
return false
|
||||
}
|
||||
|
||||
const capabilities = getCapabilities()
|
||||
const publicSharing = capabilities.files_sharing?.public || {}
|
||||
return publicSharing.enabled === true
|
||||
},
|
||||
|
||||
canReshare() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue