mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -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
|
* @param \App\Models\User $user
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function viewFiles(User $user)
|
public function files(User $user, $license = null)
|
||||||
{
|
{
|
||||||
if ($user->hasAccess('licenses.files')) {
|
if ($user->hasAccess('licenses.files')) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue