summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/pages/TimeTracker/config.php
blob: 8668ca150e7106948e508fcef4f50c7514b05335 (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
<?php
return array(
	'modules' => array(
		'users' => array(
			'class' => 'Application.App_Code.UserManager',
		),
		'auth' => array(
			'class' => 'Application.App_Code.TrackerAuthManager',
			'properties' => array(
				'UserManager' => 'users',
				'LoginPage' => 'TimeTracker.Login'
			),
		),
	),
	'authorization' => array(
		array('action'=>'allow','pages'=>'ProjectList, ProjectDetails, ReportResource, ReportProject','roles'=>'manager'),
		array('action'=>'allow','pages'=>'LogTimeEntry','roles'=>'consultant'),
		array('action'=>'allow','pages'=>'UserCrate,Logout,Login','users'=>'*'),
		array('action'=>'deny','users'=>'*'),
	),
	'pages' => array(
		'properties' => array(
			'MasterClass' => 'Application.pages.TimeTracker.MainLayout',
			'Theme' => 'TimeTracker',
		),
	),
	'parameters' => array(
		'NewUserRoles' => 'admin,manager,consultant',
	),
);