summaryrefslogtreecommitdiff
path: root/demos/chat/protected/pages/config.php
blob: 926bf1505ca8c670a8b7e3578610cf108b7f31fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
return array(
	'modules' => array(
		'users' => array(
			'class' => 'ChatUserManager',
		),
		'auth' => array(
			'class' => 'TAuthManager',
			'properties' => array(
				'UserManager' => 'users',
				'LoginPage' => 'Login',
			),
		),
	),
	
	'authorization' => array(
		array(
			'action' => 'allow',
			'pages' => 'Login',
			'users' => '?',
		),
		array(
			'action' => 'allow',
			'roles' => 'normal',
		),
		array(
			'action' => 'deny',
			'users' => '*',
		),
	),
);