1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 14:42:42 +01:00
invoiceninja/app/Policies/ProductPolicy.php

13 lines
269 B
PHP
Raw Normal View History

2016-04-26 03:53:39 +02:00
<?php
namespace App\Policies;
2016-04-27 16:24:09 +02:00
class ProductPolicy extends EntityPolicy {
2016-04-26 03:53:39 +02:00
public static function edit($user, $item) {
return $user->hasPermission('admin');
}
2016-05-06 21:05:28 +02:00
public static function create($user) {
return $user->hasPermission('admin');
}
2016-04-26 03:53:39 +02:00
}