fixed bug
This commit is contained in:
parent
9594ea0fc4
commit
5e59f507af
@ -25,12 +25,6 @@ class PermissionSeed extends Seeder
|
|||||||
'description' => 'super user',
|
'description' => 'super user',
|
||||||
'creator_id' => 1,
|
'creator_id' => 1,
|
||||||
]);
|
]);
|
||||||
\think\facade\Db::name( 'user_has_roles')->insert([
|
|
||||||
'role_id' => 1,
|
|
||||||
'uid' => 1,
|
|
||||||
]);
|
|
||||||
|
|
||||||
\think\facade\Db::name('role_has_permissions')->insertAll($this->getRolePermissions());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user