- refactored user_scope to author

- added author_id for future teams implementation
This commit is contained in:
Peter Papp
2021-03-19 11:27:58 +01:00
parent 19a75d2fb1
commit aa51484303
17 changed files with 176 additions and 207 deletions

View File

@@ -162,7 +162,7 @@ class BrowseController extends Controller
{
return File::with(['parent'])
->where('user_id', Auth::id())
->whereUserScope('editor')
->whereAuthor('visitor')
->sortable()
->get();
}