mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Updated entity restrictions to allow permissions, Not just restrict
Also changed wording from 'Restrictions' to 'Permissions' to keep things more familiar and to better reflect what they do. Referenced in issue #89.
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
<form action="{{ $model->getUrl() }}/restrict" method="POST">
|
||||
<form action="{{ $model->getUrl() }}/permissions" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<input type="hidden" name="_method" value="PUT">
|
||||
|
||||
<p>Once enabled, These permissions will take priority over any set role permissions.</p>
|
||||
|
||||
<div class="form-group">
|
||||
@include('form/checkbox', ['name' => 'restricted', 'label' => 'Restrict this ' . $model->getClassName()])
|
||||
@include('form/checkbox', ['name' => 'restricted', 'label' => 'Enable custom permissions'])
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Role</th>
|
||||
@ -25,5 +28,5 @@
|
||||
</table>
|
||||
|
||||
<a href="{{ $model->getUrl() }}" class="button muted">Cancel</a>
|
||||
<button type="submit" class="button pos">Save Restrictions</button>
|
||||
<button type="submit" class="button pos">Save Permissions</button>
|
||||
</form>
|
Reference in New Issue
Block a user