summaryrefslogtreecommitdiff
path: root/app/policies/timelog_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/timelog_policy.rb')
-rw-r--r--app/policies/timelog_policy.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/timelog_policy.rb b/app/policies/timelog_policy.rb
new file mode 100644
index 00000000000..0598817d4e0
--- /dev/null
+++ b/app/policies/timelog_policy.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+class TimelogPolicy < BasePolicy
+ delegate { @subject.issuable.resource_parent }
+end