Skip to content
Snippets Groups Projects
Commit 983baad5 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

change create permission for users

parent 74387f54
No related branches found
No related tags found
No related merge requests found
class UserPolicy < ApplicationPolicy
include FollowablePolicy
def show?
record if user_exists?
def create?
user.is_admin?
end
def list?
record
def show?
record if user_exists?
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment