11 lines
210 B
Ruby
11 lines
210 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Settings::ProfilePolicy < ApplicationPolicy
|
|
def update?
|
|
!!account
|
|
end
|
|
|
|
def permitted_attributes_for_update
|
|
%i[nickname public_name biography avatar]
|
|
end
|
|
end
|