Skip to content

Commit

Permalink
fix UI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed Sep 24, 2024
1 parent 9f08c3a commit 0a86db0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{
<div class="mb-3">
<div class="form-check">
<input type="checkbox" class="form-check-input" asp-for="IsOwnerType" checked="@Model.IsOwnerType" role="button" />
<input type="checkbox" class="form-check-input" asp-for="IsOwnerType" checked="@Model.IsOwnerType" role="button" data-bs-toggle="collapse" data-bs-target="#Role_Permissions_Container" aria-expanded="@(Model.IsOwnerType ? "false" : "true")" aria-controls="Role_Permissions_Container" />
<label class="form-check-label" asp-for="IsOwnerType">@T["Site Owner?"]</label>
<span class="badge text-bg-danger">@T["Security Critical"]</span>
<span class="hint dashed">@T["Roles with the Owner type will automatically grant the user full access to all permissions."]</span>
Expand Down
1 change: 1 addition & 0 deletions src/docs/releases/2.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ A new `Type` property has been added to the `IRole` interface, and partially sur
Furthermore, the `SiteOwner` permission has been deprecated and will be removed in future releases. To prevent any breaking changes, we've introduced a fast-track migration that automatically assigns the `Owner` role type to any role with the `SiteOwner` permission.

Instead of authorizing against the `SiteOwner` permission, the Recipes feature now uses its own Manage Recipes permission (which is automatically available for the Administrator role).

!!! warning
Please set the `Owner` type on roles instead of using the `SiteOwner` permission. The latter will be removed in a future version. Don't authorize against the `SiteOwner` permission in code.

Expand Down

0 comments on commit 0a86db0

Please sign in to comment.