mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 07:22:35 -07:00
Fixed #749
Fixed an issue where we were adding the read only permission when creating the admin
This commit is contained in:
parent
9e6854458a
commit
6ea3907923
6 changed files with 313 additions and 27 deletions
|
@ -183,7 +183,7 @@ namespace PlexRequests.UI.Modules
|
|||
private async Task<Response> CreateUser()
|
||||
{
|
||||
var username = (string)Request.Form.Username;
|
||||
var userId = Mapper.CreateUser(username, Request.Form.Password, EnumHelper<Permissions>.All(), 0);
|
||||
var userId = Mapper.CreateUser(username, Request.Form.Password, EnumHelper<Permissions>.All() - (int)Permissions.ReadOnlyUser, 0);
|
||||
Analytics.TrackEventAsync(Category.Wizard, Action.Finish, "Finished the wizard", username, CookieHelper.GetAnalyticClientId(Cookies));
|
||||
Session[SessionKeys.UsernameKey] = username;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue