projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactored register.php by encapsulating stuff in ttRegistrator class.
[timetracker.git]
/
locking.php
diff --git
a/locking.php
b/locking.php
index
dfdc2f2
..
1f9530c
100644
(file)
--- a/
locking.php
+++ b/
locking.php
@@
-31,7
+31,7
@@
import('form.Form');
import('ttTeamHelper');
// Access check.
import('ttTeamHelper');
// Access check.
-if (!ttAccess
Check(right_manage_team
)) {
+if (!ttAccess
Allowed('manage_advanced_settings') || !$user->isPluginEnabled('lk'
)) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
@@
-44,7
+44,7
@@
$form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->getKey
if ($request->isPost()) {
// Validate user input.
if ($request->isPost()) {
// Validate user input.
- if (!ttValidCronSpec($cl_lock_spec)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.
cron_
schedule'));
+ if (!ttValidCronSpec($cl_lock_spec)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.schedule'));
if ($err->no()) {
if (ttTeamHelper::update($user->team_id, array(
if ($err->no()) {
if (ttTeamHelper::update($user->team_id, array(