Fix known issues from the upgrade guide
This commit is contained in:
parent
0dcf2aaed6
commit
3c48947f9d
11 changed files with 71 additions and 88 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