mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
de-global services for admin
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
9b20c6918f
commit
992c0a1e58
14 files changed
+208
-214
No files matched your search
@@ -247,7 +247,7 @@ impl Service {
|
||||
|
||||
/// Check if a user is an admin
|
||||
pub fn is_admin(&self, user_id: &UserId) -> Result<bool> {
|
||||
if let Some(admin_room_id) = crate::admin::Service::get_admin_room()? {
|
||||
if let Some(admin_room_id) = services().admin.get_admin_room()? {
|
||||
services()
|
||||
.rooms
|
||||
.state_cache
|
||||
|
||||
Reference in new issue
Block a user