mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed license policy method
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
dcab1381e7
commit
f75d348dc0
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue