GitLab wird am Donnerstag, den 27. Januar, zwischen 08:00 und 12:00 Uhr wegen wichtigen Wartungsarbeiten nicht zur Verfügung stehen.

Commit 720a6d3b authored by jplang's avatar jplang
Browse files

Timelog is ignored when updating an issue if user is admin but not a project member (#2717).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 17c108fd
......@@ -187,7 +187,7 @@ class IssuesController < ApplicationController
if (@time_entry.hours.nil? || @time_entry.valid?) &&
# Log spend time
if current_role.allowed_to?(:log_time)
if User.current.allowed_to?(:log_time, @project)
if !journal.new_record?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment