mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-04-02 09:51:57 -04:00
13 lines
261 B
Ruby
13 lines
261 B
Ruby
# base class for stopwatch controllers
|
|
class StopwatchController < ApplicationController
|
|
helper :timelog, :custom_fields
|
|
|
|
before_action :require_login
|
|
|
|
private
|
|
|
|
def authorize_edit_time
|
|
@time_entry.editable_by?(User.current) or deny_access
|
|
end
|
|
end
|