Skip to content

Commit 4210c83

Browse files
Restrict retention policy UI to admins
Update process edit view to only display the case retention policy card when the feature is enabled and the current user is an administrator. The Blade conditional in resources/views/processes/edit.blade.php now requires both config('app.case_retention_policy_enabled') and auth()->user()->is_administrator to prevent non-admins from seeing the retention settings.
1 parent c388349 commit 4210c83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/views/processes/edit.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class="invalid-feedback"
347347
</div>
348348
</div>
349349

350-
@if(config('app.case_retention_policy_enabled'))
350+
@if(config('app.case_retention_policy_enabled') && auth()->user()->is_administrator)
351351
<div class="card card-custom-info">
352352
<div class="card-header"
353353
id="headingCasesRetention">

0 commit comments

Comments
 (0)