Require authentication for most actions
Some checks failed
Ruby CI / test (pull_request) Failing after 40s
Some checks failed
Ruby CI / test (pull_request) Failing after 40s
This commit is contained in:
parent
d0b4d000eb
commit
108959f2b0
14 changed files with 73 additions and 5 deletions
|
@ -1,3 +1,5 @@
|
|||
class GuestUser
|
||||
def registered? = false
|
||||
|
||||
def unregistered? = true
|
||||
end
|
||||
|
|
|
@ -2,4 +2,6 @@ class User < ApplicationRecord
|
|||
has_secure_password
|
||||
|
||||
def registered? = true
|
||||
|
||||
def unregistered? = false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue