Skip to content

Commit b9206d6

Browse files
author
Jurian Sluiman
committed
Merge branch 'remove_authorize'
2 parents 859c459 + 18d0b77 commit b9206d6

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

config/module.config.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,7 @@
7171
),
7272
),
7373

74-
'bjyauthorize' => array(
75-
/* Enable Route Guard
76-
*/
77-
'guards' => array(
78-
'BjyAuthorize\Guard\Route' => array(
79-
array('route' => 'admin', 'roles' => array('admin')),
80-
),
81-
),
82-
),
74+
8375

8476
'view_manager' => array(
8577
'template_path_stack' => array(

config/zfcadmin.global.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,22 @@
3131
/**
3232
* End of ZfcAdmin configuration
3333
*/
34+
3435
);
3536

3637
/**
3738
* You do not need to edit below this line
3839
*/
3940
return array(
40-
'zfcadmin' => $settings
41+
'zfcadmin' => $settings,
42+
43+
'bjyauthorize' => array(
44+
/* Enable Route Guard
45+
*/
46+
'guards' => array(
47+
'BjyAuthorize\Guard\Route' => array(
48+
array('route' => 'zfcadmin', 'roles' => array('admin')),
49+
),
50+
),
51+
),
4152
);

0 commit comments

Comments
 (0)