v0.10.16 - Various fixes

This commit is contained in:
frederikpyt
2020-08-31 09:36:10 +02:00
parent d8a754d398
commit c6c54996b5
19 changed files with 55 additions and 68 deletions
@@ -23,11 +23,11 @@ class UserController extends Controller
public function __construct()
{
$this->middleware([ "auth" ])->only("logout");
$this->middleware([ "guest" ])->only("login");
$this->middleware([ "lang" ])->except(["login", "showLogin", "showForgot", "forgot"]);
$this->middleware([ "check.auth:user.list" ])->only("index");
$this->middleware([ "check.auth:user.show" ])->only("show");
$this->middleware([ "check.auth:user.show" ])->only("show", "index");
$this->middleware([ "check.auth:user.create" ])->only("create");
$this->middleware([ "check.auth:user.edit" ])->only(["edit", "update"]);
$this->middleware([ "check.auth:user.delete" ])->only("delete");