mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 04:12:25 +00:00
Allow overlapping admin lists
This commit is contained in:
1 parent
d1fdb5388c
commit
40490afac2
4 files changed
+41
-20
No files matched your search
+2
-6
@@ -581,9 +581,7 @@ class AccessControl {
|
||||
}
|
||||
|
||||
const nextWhitelist = dedupeNpubs([...this.getWhitelist(), normalized]);
|
||||
const nextBlacklist = this.getBlacklist().filter(
|
||||
(value) => value !== normalized
|
||||
);
|
||||
const nextBlacklist = this.getBlacklist();
|
||||
|
||||
try {
|
||||
await persistAdminState(actorNpub, {
|
||||
@@ -642,9 +640,7 @@ class AccessControl {
|
||||
}
|
||||
|
||||
const nextBlacklist = dedupeNpubs([...this.getBlacklist(), normalized]);
|
||||
const nextWhitelist = this.getWhitelist().filter(
|
||||
(value) => value !== normalized
|
||||
);
|
||||
const nextWhitelist = this.getWhitelist();
|
||||
|
||||
try {
|
||||
await persistAdminState(actorNpub, {
|
||||
|
||||
Reference in new issue
Block a user