Fix known issues from the upgrade guide

This commit is contained in:
Dane Everitt
2017-12-16 13:15:09 -06:00
parent 0dcf2aaed6
commit 3c48947f9d
11 changed files with 71 additions and 88 deletions

View File

@@ -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
}
}