This commit is contained in:
2018-12-06 21:30:30 -06:00
parent 3072777943
commit 521a441bc3

View File

@@ -28,7 +28,7 @@ class AdminController extends Controller
//Check to see if the character already has the permission
$check = DB::table('user_permissions')->where(['character_id' => $character->character_id, 'permission' => $permission])->get();
//If the user doesn't have the permission then add it into the table
if($check == null) {
if($check === null) {
$perm = new UserPermission;
$perm->character_id = $character->character_id;
$perm->permission = $permission;