mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Changed Security::permissionFailure to be what it should be - $controller instead of $page. However, it doesn't seem to be used anywhere anyway...
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44408 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
60bedcfc1e
commit
adc8757859
@ -81,7 +81,7 @@ class Security extends Controller {
|
|||||||
* This will redirect to a login page.
|
* This will redirect to a login page.
|
||||||
* If you don't provide a messageSet, a default will be used.
|
* If you don't provide a messageSet, a default will be used.
|
||||||
*
|
*
|
||||||
* @param $page The controller that you were on to cause the permission
|
* @param Controller $controller The controller that you were on to cause the permission
|
||||||
* failure.
|
* failure.
|
||||||
* @param string|array $messageSet The message to show to the user. This
|
* @param string|array $messageSet The message to show to the user. This
|
||||||
* can be a string, or a map of different
|
* can be a string, or a map of different
|
||||||
@ -99,7 +99,7 @@ class Security extends Controller {
|
|||||||
* permission to
|
* permission to
|
||||||
* access the item.
|
* access the item.
|
||||||
*/
|
*/
|
||||||
static function permissionFailure($page, $messageSet = null) {
|
static function permissionFailure($controller, $messageSet = null) {
|
||||||
// Prepare the messageSet provided
|
// Prepare the messageSet provided
|
||||||
if(!$messageSet) {
|
if(!$messageSet) {
|
||||||
$messageSet = array(
|
$messageSet = array(
|
||||||
@ -838,4 +838,4 @@ class Security extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user