
* Implemented forgot password flow. Fixed a bug in manage user where admins were showing the Sharing With section. * Cleaned up the reset password flow. * Reverted some debug code * Fixed an issue with invites due to ImmutableArray not being set.
27 lines
828 B
C#
27 lines
828 B
C#
using System.Collections.Generic;
|
|
using System.Collections.Immutable;
|
|
|
|
namespace API.Constants
|
|
{
|
|
/// <summary>
|
|
/// Role-based Security
|
|
/// </summary>
|
|
public static class PolicyConstants
|
|
{
|
|
/// <summary>
|
|
/// Admin User. Has all privileges
|
|
/// </summary>
|
|
public const string AdminRole = "Admin";
|
|
/// <summary>
|
|
/// Non-Admin User. Must be granted privileges by an Admin.
|
|
/// </summary>
|
|
public const string PlebRole = "Pleb";
|
|
/// <summary>
|
|
/// Used to give a user ability to download files from the server
|
|
/// </summary>
|
|
public const string DownloadRole = "Download";
|
|
|
|
public static readonly ImmutableArray<string> ValidRoles =
|
|
ImmutableArray.Create(AdminRole, PlebRole, DownloadRole);
|
|
}
|
|
}
|