Skip to content

Commit

Permalink
fix: for front remove ?
Browse files Browse the repository at this point in the history
  • Loading branch information
sylv-p committed Dec 13, 2021
1 parent aae0744 commit 42b5007
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/serializers/user_serializer.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class UserSerializer
include FastJsonapi::ObjectSerializer
attributes :id, :email, :firstname, :lastname, :access_locked?
attributes :id, :email, :firstname, :lastname

attribute :access_type do |user|
data = []
Expand All @@ -9,10 +9,8 @@ class UserSerializer
data << "user" if user.is_user
data
end

attribute :access_auth do |user|
data = []

data

attribute :access_locked do |user|
user.access_locked?
end
end

0 comments on commit 42b5007

Please sign in to comment.