Fix table names are globally unique instead of per user

This commit is contained in:
2018-08-13 00:10:10 +02:00
parent c76fc21820
commit 7f48d14ce3
2 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -231,9 +231,10 @@ class User extends BaseModel implements
* Check if this user has a table with the givenname
*
* @param string $name
* @return bool
*/
public function hasTable(string $name)
{
$this->tables()->where('name', $name)->exists();
return $this->tables()->where('name', $name)->exists();
}
}