Changeset 1149
- Timestamp:
- 07/02/11 20:53:59 (11 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
-
common/security.php (modified) (1 diff)
-
common/user.php (modified) (1 diff)
-
scripts/migrate-security-level.php (added)
-
www/controllers/account_validator.php (modified) (1 diff)
-
www/views/account.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/security.php
r1114 r1149 21 21 // - helper Trusted users. They can make their own tasks, but 22 22 // can't publish them. For teachers or high ratings. 23 // - interns Trusted users, future core team members. 23 24 // - admin Can do anything. For core team members. 24 25 -
trunk/common/user.php
r993 r1149 93 93 } else if ($user['security_level'] != 'normal' && 94 94 $user['security_level'] != 'helper' && 95 $user['security_level'] != 'admin') { 95 $user['security_level'] != 'admin' && 96 $user['security_level'] != 'intern') { 96 97 $errors['security_level'] = "Nivel de securitate invalid"; 97 98 } -
trunk/www/controllers/account_validator.php
r1091 r1149 121 121 122 122 // Security 123 log_print($user['security_level']); 123 124 if (!$register && array_key_exists('security_level', $data)) { 124 125 if ($user['security_level'] != 'normal' && 125 126 $user['security_level'] != 'helper' && 126 $user['security_level'] != 'admin') { 127 $user['security_level'] != 'admin' && 128 $user['security_level'] != 'intern') { 127 129 $errors['security_level'] = "Nivel de securitate invalid"; 128 130 } -
trunk/www/views/account.php
r1077 r1149 55 55 'normal' => 'Utilizator normal', 56 56 'helper' => 'Propunator de probleme', 57 'intern' => 'Intern', 57 58 'admin' => 'Admin smenar', 58 59 ),
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)