diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-10-20 14:26:02 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-10-20 14:26:02 +1100 |
| commit | 02670870b2711db0984f492d452a90477c67608a (patch) | |
| tree | a6c15f627535dd962042d2e000c093cf2ae63956 /Pages/Component/AclDialog.razor | |
| parent | 07728d1048f34e1d048da63684b341ab30bc1d06 (diff) | |
Gallery
Diffstat (limited to 'Pages/Component/AclDialog.razor')
| -rw-r--r-- | Pages/Component/AclDialog.razor | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Pages/Component/AclDialog.razor b/Pages/Component/AclDialog.razor index c924b98..476306b 100644 --- a/Pages/Component/AclDialog.razor +++ b/Pages/Component/AclDialog.razor @@ -149,7 +149,7 @@ public bool ApplyDisabled => GetAclHashCode(obj.Acl!) == lastHashCode || - obj.Acl!.Rules.Select(r => r.Principal).Contains(WellKnownSid.NullSid); + obj.Acl!.Rules.Select(r => r.Principal).Contains(WellKnownSid.NullSid); protected override void OnAfterRender(bool firstRender) { if(subjectSelect is null || ruleToEdit is null) @@ -188,9 +188,9 @@ private void ApplyAcl() { if(obj.Acl!.Rules.Count() == 0) { - obj.Acl = null; if(!addedAcl) db.Remove(obj.Acl!); + obj.Acl = null; } db.SaveChanges(); |
