FIX: lots of bugfixes

This commit is contained in:
Michal Kváček
2017-08-24 03:48:17 +02:00
parent 029d84fed1
commit 295e8927a9
10 changed files with 434 additions and 14 deletions
+1 -1
View File
@@ -5,6 +5,7 @@ namespace App\Policies;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Auth;
abstract class BasicPolicy
{
@@ -20,7 +21,6 @@ abstract class BasicPolicy
*/
public function before(User $user, $ability)
{
// check if user can operate on given entity
if (!$this->manage($user)) {
return false;