mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-04 00:09:58 +00: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:
parent
a83150131a
commit
ae834050f5
5 changed files with 22 additions and 10 deletions
database/migrations
|
@ -12,9 +12,10 @@ return new class extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
DB::table('entity_permissions')
|
||||
->where('entity_type', '=', 'bookshelf')
|
||||
->update(['create' => 0]);
|
||||
// Note: v23.06.2
|
||||
// Migration removed since change to remove bookshelf create permissions was reverted.
|
||||
// Create permissions were removed as incorrectly thought to be unused, but they did
|
||||
// have a use via shelf permission copy-down to books.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue