Expand tests and fix various small issues in strict comparison.

This commit is contained in:
James Cole
2017-07-15 22:17:24 +02:00
parent aac1338bdd
commit fa00ba2edd
12 changed files with 37 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ class Category extends Model
public static function routeBinder(Category $value)
{
if (auth()->check()) {
if ($value->user_id === auth()->user()->id) {
if (intval($value->user_id) === auth()->user()->id) {
return $value;
}
}