diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-30 10:47:54 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-30 10:47:54 +0200 |
commit | a2ef3f6ec4c830611fde1a2e935588ccbbc61c03 (patch) | |
tree | ddcc1cb501e6c7237edd491aa7136d02150d03d3 /base/src/permission.rs | |
parent | 212a0f23bc894faf88e159560c113f504349cc05 (diff) | |
download | jellything-a2ef3f6ec4c830611fde1a2e935588ccbbc61c03.tar jellything-a2ef3f6ec4c830611fde1a2e935588ccbbc61c03.tar.bz2 jellything-a2ef3f6ec4c830611fde1a2e935588ccbbc61c03.tar.zst |
config works
Diffstat (limited to 'base/src/permission.rs')
-rw-r--r-- | base/src/permission.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/src/permission.rs b/base/src/permission.rs index 55d0870..7914f0b 100644 --- a/base/src/permission.rs +++ b/base/src/permission.rs @@ -3,7 +3,6 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin <metamuffin.org> */ -use crate::CONF; use anyhow::anyhow; use jellycommon::{ user::{PermissionSet, UserPermission}, @@ -22,7 +21,7 @@ impl PermissionSetExt for PermissionSet { fn check_explicit(&self, perm: &UserPermission) -> Option<bool> { self.0 .get(perm) - .or(CONF.default_permission_set.0.get(perm)) + // .or(CONF.default_permission_set.0.get(perm)) .copied() } fn assert(&self, perm: &UserPermission) -> Result<(), anyhow::Error> { |