Class: AnonymousUser

Inherits:
Object
  • Object
show all
Defined in:
backend/app/model/anonymous_user.rb

Instance Method Summary collapse

Instance Method Details

#anonymous?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'backend/app/model/anonymous_user.rb', line 3

def anonymous?
  true
end

#can?(permission, opts = {}) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'backend/app/model/anonymous_user.rb', line 13

def can?(permission, opts = {})
  false
end

#usernameObject



8
9
10
# File 'backend/app/model/anonymous_user.rb', line 8

def username
  nil
end