Fixed license policy method

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-09-16 14:06:46 -07:00
parent dcab1381e7
commit f75d348dc0

View file

@ -42,7 +42,7 @@ class LicensePolicy extends CheckoutablePermissionsPolicy
* @param \App\Models\User $user
* @return mixed
*/
public function viewFiles(User $user)
public function files(User $user, $license = null)
{
if ($user->hasAccess('licenses.files')) {
return true;