mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Shelf permissions: reverted create removal
Reverted work in 847a57a49a
.
Left test in but updated to new expectation.
Left migration in but removed content to prevent new pre-v23.06
upgraders loosing shelf create permission status.
Added note to permission to describe use-case.
For #4375
This commit is contained in:
@ -44,11 +44,11 @@ $inheriting - Boolean if the current row should be marked as inheriting default
|
||||
'disabled' => $inheriting
|
||||
])
|
||||
</div>
|
||||
@if($entityType !== 'page' && $entityType !== 'bookshelf')
|
||||
@if($entityType !== 'page')
|
||||
<div class="px-l">
|
||||
@include('form.custom-checkbox', [
|
||||
'name' => 'permissions[' . $role->id . '][create]',
|
||||
'label' => trans('common.create'),
|
||||
'label' => trans('common.create') . ($entityType === 'bookshelf' ? ' *' : ''),
|
||||
'value' => 'true',
|
||||
'checked' => $permission->create,
|
||||
'disabled' => $inheriting
|
||||
|
@ -70,8 +70,17 @@
|
||||
|
||||
<hr class="mb-m">
|
||||
|
||||
<div class="text-right">
|
||||
<a href="{{ $model->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
|
||||
<button type="submit" class="button">{{ trans('entities.permissions_save') }}</button>
|
||||
<div class="flex-container-row justify-space-between gap-m wrap">
|
||||
<div class="flex min-width-m">
|
||||
@if($model instanceof \BookStack\Entities\Models\Bookshelf)
|
||||
<p class="small text-muted mb-none">
|
||||
* {{ trans('entities.shelves_permissions_create') }}
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<a href="{{ $model->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
|
||||
<button type="submit" class="button">{{ trans('entities.permissions_save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
Reference in New Issue
Block a user