Added a new permission to bypass the request limit

pull/758/head
Jamie.Rees 8 years ago
parent 4d0298bbea
commit 2dcf573526

@ -70,6 +70,9 @@ namespace PlexRequests.Helpers.Permissions
UsersCanViewOnlyOwnRequests = 1024,
[Display(Name = "Users can only view their own issues")]
UsersCanViewOnlyOwnIssues = 2048
UsersCanViewOnlyOwnIssues = 2048,
[Display(Name = "Bypass the request limit")]
BypassRequestLimit = 4096
}
}

@ -1234,7 +1234,7 @@ namespace PlexRequests.UI.Modules
if (IsAdmin)
return true;
if (ShouldAutoApprove(type,s,Username))
if (Security.HasPermissions(User, Permissions.BypassRequestLimit))
return true;
var requestLimit = GetRequestLimitForType(type, s);

Loading…
Cancel
Save