This commit is contained in:
2026-02-27 19:17:40 -08:00
parent b6b058f05e
commit 0fb4effd26
6 changed files with 94 additions and 28 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ public class PermissionService
/// <param name="isMine">Whether the resource belongs to the requesting user.
/// For Create actions this parameter is ignored.</param>
/// <returns>True if the action is permitted, false otherwise.</returns>
public bool IsAllowed(string role, string entity, string action, bool isMine = true)
public static bool IsAllowed(string role, string entity, string action, bool isMine = true)
{
var rule = PermissionMatrix.GetRule(role, entity, action);