fix logic which sometimes results in System.InvalidOperationException: The value of IsFixed cannot be changed dynamically

This commit is contained in:
Shaun Walker
2021-10-01 15:58:17 -04:00
parent 838d918451
commit ac67d88e74

View File

@ -1,6 +1,6 @@
@namespace Oqtane.UI
<CascadingValue Value="@ModuleState" IsFixed="@(!PageState.EditMode)">
<CascadingValue Value="@ModuleState" IsFixed="@(!UserSecurity.IsAuthorized(PageState.User, PermissionNames.Edit, PageState.Page.Permissions))">
@if (_useadminborder)
{
<div class="app-pane-admin-border">