From 7306701c1e37cc8b8a4268f14d82abf5ab7b7255 Mon Sep 17 00:00:00 2001 From: emmdim Date: Fri, 24 Jan 2025 13:07:19 +0100 Subject: [PATCH] MAke `Any` role not a valid role --- db/const.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/const.go b/db/const.go index c612f48..32d4c05 100644 --- a/db/const.go +++ b/db/const.go @@ -84,7 +84,7 @@ var validRoles = map[UserRole]bool{ AdminRole: true, ManagerRole: true, ViewerRole: true, - AnyRole: true, + AnyRole: false, } // IsValidUserRole function checks if the user role is valid