is parent admin
This commit is contained in:
parent
4b44edccdd
commit
4041730804
|
|
@ -22,7 +22,7 @@ class CheckIfAdmin
|
|||
*/
|
||||
private function checkIfUserIsAdmin($user)
|
||||
{
|
||||
return ($user->is_admin == 1);
|
||||
return ($user->is_parent == 1);
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ class CreateUsersTable extends Migration
|
|||
Schema::create('users', function ($t) {
|
||||
|
||||
$t->increments('id');
|
||||
$t->unsignedInteger('account_id')->index();
|
||||
$t->unsignedInteger('account_id')->index()->default(0);
|
||||
$t->nullableTimestamps();
|
||||
$t->softDeletes();
|
||||
|
||||
|
|
|
|||
|
|
@ -21,5 +21,6 @@ class DatabaseSeeder extends Seeder
|
|||
$this->call('TicketStatusSeeder');
|
||||
$this->call('TimezoneSeeder');
|
||||
$this->call('CategoriesSeeder');
|
||||
$this->call('SettingsSeeder');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue