* Set up basic /manage route * Add basic article manage page * Add tips and finalize permissions for /manage * Add final test and add manage button to article show * Update failing specs
11 lines
179 B
Ruby
11 lines
179 B
Ruby
class BufferUpdatePolicy < ApplicationPolicy
|
|
def create?
|
|
user_is_trusted? || user_is_author?
|
|
end
|
|
|
|
private
|
|
|
|
def user_is_author?
|
|
record.user_id == user.id
|
|
end
|
|
end
|