enhance dynamic authorization policies to support default role specification

This commit is contained in:
Shaun Walker
2022-12-02 07:34:06 -05:00
parent a1aab62cea
commit b09a3ccdae
7 changed files with 72 additions and 38 deletions

View File

@ -74,6 +74,8 @@ namespace Oqtane.Shared
public static readonly string MauiUserAgent = "MAUI";
public static readonly string RequireEntityId = "RequireEntityId";
// Obsolete constants
const string RoleObsoleteMessage = "Use the corresponding member from Oqtane.Shared.RoleNames";

View File

@ -1,11 +1,15 @@
namespace Oqtane.Shared
namespace Oqtane.Shared
{
public class PermissionNames
{
public const string Browse = "Browse";
// UI permissions
public const string View = "View";
public const string Edit = "Edit";
public const string Browse = "Browse";
public const string Utilize = "Utilize";
// API permissions
public const string Read = "Read";
public const string Write = "Write";
}
}