Commit 04bdd9ea authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

update

parent 38da2d41
...@@ -193,7 +193,7 @@ class User extends Authenticatable ...@@ -193,7 +193,7 @@ class User extends Authenticatable
*/ */
public function profileSelected() public function profileSelected()
{ {
return $this->profiles()->whereSelected(true)->first(); return $this->profiles()->first();
} }
/** /**
...@@ -209,10 +209,6 @@ class User extends Authenticatable ...@@ -209,10 +209,6 @@ class User extends Authenticatable
*/ */
public function isTypeTeacher() public function isTypeTeacher()
{ {
// dd([
// 'professor',
// 'profile' => $this->profileSelected()->type === UserType::TEACHER
// ]);
return $this->profileSelected()->type === UserType::TEACHER; return $this->profileSelected()->type === UserType::TEACHER;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment