mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
#456 Update all the requests when we identify that the username changes
This commit is contained in:
parent
3d2272cd91
commit
d5127073bc
7 changed files with 92 additions and 20 deletions
|
@ -8,7 +8,11 @@ namespace PlexRequests.Core
|
|||
public interface ISecurityExtensions
|
||||
{
|
||||
Response AdminLoginRedirect(Permissions perm, NancyContext context);
|
||||
Response AdminLoginRedirect(NancyContext context, params Permissions[] perm);
|
||||
bool DoesNotHavePermissions(Permissions perm, IUserIdentity currentUser);
|
||||
|
||||
Response HasAnyPermissionsRedirect(NancyContext context, string routeName, HttpStatusCode code,
|
||||
params Permissions[] perm);
|
||||
bool DoesNotHavePermissions(int perm, IUserIdentity currentUser);
|
||||
Func<NancyContext, Response> ForbiddenIfNot(Func<NancyContext, bool> test);
|
||||
bool HasAnyPermissions(IUserIdentity user, params Permissions[] perm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue