Security fixes for Site Administrators to ensure proper access. Improvements to User and Role management components. Fix logic in CreateUser so that it does not prevent Administrators from creating users.
This commit is contained in:
@ -348,10 +348,10 @@ namespace Oqtane.Infrastructure
|
||||
var user = new User
|
||||
{
|
||||
SiteId = site.SiteId,
|
||||
Username = GetInstallationConfig(SettingKeys.HostUserKey, Constants.HostUser),
|
||||
Username = Constants.HostUser,
|
||||
Password = password,
|
||||
Email = email,
|
||||
DisplayName = GetInstallationConfig(SettingKeys.HostUserKey, Constants.HostUser),
|
||||
DisplayName = Constants.HostUser
|
||||
};
|
||||
CreateHostUser(folders, userRoles, roles, users, identityUserManager, user);
|
||||
tenant.IsInitialized = true;
|
||||
|
Reference in New Issue
Block a user