0
0
Fork 0
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 
This commit is contained in:
Dan Brown 2023-07-12 22:04:05 +01:00
parent a83150131a
commit ae834050f5
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
5 changed files with 22 additions and 10 deletions

View file

@ -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.
}
/**