Skip to content

Commit 41bba0d

Browse files
committed
don't allow the automatic creation of new tags for locked projects
1 parent 6a90b3c commit 41bba0d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Controller/AjaxController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,11 @@ public function updateWorkInterval($id) {
324324
if (empty($tag))
325325
continue;
326326
if(!is_numeric($tag)){
327+
if ($wi->projectId != null){
328+
$project = $this->projectMapper->find($wi->projectId);
329+
if($project && $project->locked)
330+
continue; // don't add new tags to locked projects
331+
}
327332
$c = new Tag();
328333
$c->setName($tag);
329334
$c->setUserUid($this->userId);

0 commit comments

Comments
 (0)