Merge pull request #1704 from sbwalker/dev

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:51:26 -04:00 committed by GitHub
commit 1f4f70009c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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">