fix #1103 reported by @PhilipMur - incorrect life cycle method for Control Panel loading

This commit is contained in:
Shaun Walker
2021-02-15 10:38:38 -05:00
parent de1107f046
commit 9e8c574fb5

View File

@ -296,7 +296,7 @@
public bool ShowLanguageSwitcher { get; set; } = true; public bool ShowLanguageSwitcher { get; set; } = true;
protected override async Task OnInitializedAsync() protected override async Task OnParametersSetAsync()
{ {
if (UserSecurity.IsAuthorized(PageState.User, PermissionNames.Edit, PageState.Page.Permissions)) if (UserSecurity.IsAuthorized(PageState.User, PermissionNames.Edit, PageState.Page.Permissions))
{ {