projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a problem with predefined expenses missing on mobile pages.
[timetracker.git]
/
profile_edit.php
diff --git
a/profile_edit.php
b/profile_edit.php
index
412dc62
..
7f024fe
100644
(file)
--- a/
profile_edit.php
+++ b/
profile_edit.php
@@
-29,6
+29,7
@@
require_once('initialize.php');
import('form.Form');
import('ttUserHelper');
require_once('initialize.php');
import('form.Form');
import('ttUserHelper');
+import('ttRoleHelper');
// Access check.
if (!ttAccessCheck(right_data_entry|right_view_reports)) {
// Access check.
if (!ttAccessCheck(right_data_entry|right_view_reports)) {
@@
-299,6
+300,12
@@
if ($request->isPost()) {
$plugins = trim($plugins, ',');
$plugins = trim($plugins, ',');
+ // If we use roles... No, we'll do it differently.
+ /*
+ if ($cl_roles && !ttRoleHelper::rolesExist()) {
+ ttRoleHelper::createDefaultRoles();
+ }*/
+
// Prepare config string.
if ($cl_roles)
$config .= ',roles';
// Prepare config string.
if ($cl_roles)
$config .= ',roles';