using System.Collections.Generic; using System.Collections.Immutable; namespace API.Constants { /// /// Role-based Security /// public static class PolicyConstants { /// /// Admin User. Has all privileges /// public const string AdminRole = "Admin"; /// /// Non-Admin User. Must be granted privileges by an Admin. /// public const string PlebRole = "Pleb"; /// /// Used to give a user ability to download files from the server /// public const string DownloadRole = "Download"; public static readonly ImmutableArray ValidRoles = new ImmutableArray() { AdminRole, PlebRole, DownloadRole }; } }