mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
Prevent MassAssignmentException
This commit is contained in:
@@ -23,6 +23,8 @@ class AddDefaultLikePermissions extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
|
Permission::unguard();
|
||||||
|
|
||||||
$permission = Permission::firstOrNew($this->getPermissionAttributes());
|
$permission = Permission::firstOrNew($this->getPermissionAttributes());
|
||||||
|
|
||||||
$permission->save();
|
$permission->save();
|
||||||
|
Reference in New Issue
Block a user