projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More refactoring for subgroups.
[timetracker.git]
/
notification_edit.php
diff --git
a/notification_edit.php
b/notification_edit.php
index
4317982
..
6953581
100644
(file)
--- a/
notification_edit.php
+++ b/
notification_edit.php
@@
-33,11
+33,15
@@
import('form.Form');
import('ttFavReportHelper');
import('ttNotificationHelper');
import('ttFavReportHelper');
import('ttNotificationHelper');
-// Access check.
-if (!ttAccessAllowed('manage_advanced_settings')
|| !$user->isPluginEnabled('no')
) {
+// Access check
s
.
+if (!ttAccessAllowed('manage_advanced_settings')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (!$user->isPluginEnabled('no')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
$notification_id = (int) $request->getParameter('id');
$fav_reports = ttFavReportHelper::getReports($user->id);
$notification_id = (int) $request->getParameter('id');
$fav_reports = ttFavReportHelper::getReports($user->id);
@@
-90,7
+94,7
@@
if ($request->isPost()) {
if (ttNotificationHelper::update(array(
'id' => $notification_id,
if (ttNotificationHelper::update(array(
'id' => $notification_id,
- '
team_id' => $user->team
_id,
+ '
group_id' => $user->group
_id,
'cron_spec' => $cl_cron_spec,
'next' => $next,
'report_id' => $cl_fav_report,
'cron_spec' => $cl_cron_spec,
'next' => $next,
'report_id' => $cl_fav_report,