Fix table names are globally unique instead of per user
This commit is contained in:
+2
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user