mirror of
https://github.com/outline/outline.git
synced 2026-12-03 10:00:13 +03:00
fix: Filter sourced permissions from sidebar
This commit is contained in:
1 parent
4fd00f7b97
commit
9dcee083dd
1 file changed
+1
-1
+1
-1
@@ -114,7 +114,7 @@ class User extends ParanoidModel {
|
||||
@computed
|
||||
get memberships(): UserMembership[] {
|
||||
return this.store.rootStore.userMemberships.orderedData
|
||||
.filter((m) => m.userId === this.id)
|
||||
.filter((m) => m.userId === this.id && m.sourceId === null)
|
||||
.filter((m) => {
|
||||
const document = this.store.rootStore.documents.get(m.documentId);
|
||||
return !document?.collection;
|
||||
|
||||
Reference in new issue
Block a user