Update to Laravel 5.5 (#814)
This commit is contained in:
parent
f9df463d32
commit
b9d67459b2
35 changed files with 1021 additions and 818 deletions
|
@ -51,4 +51,17 @@ class ServerPolicy
|
|||
|
||||
return $this->checkPermission($user, $server, $ability);
|
||||
}
|
||||
|
||||
/**
|
||||
* This is a horrendous hack to avoid Laravel's "smart" behavior that does
|
||||
* not call the before() function if there isn't a function matching the
|
||||
* policy permission.
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $arguments
|
||||
*/
|
||||
public function __call($name, $arguments)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue