error message update
This commit is contained in:
parent
6e37a72ed6
commit
1d6564cf88
|
@ -23,7 +23,7 @@ class GroupPolicy < ApplicationPolicy
|
|||
|
||||
def join?
|
||||
check_archive!
|
||||
raise GabSocial::ValidationError, "User is already a member of this group." if is_member?
|
||||
raise GabSocial::ValidationError, "Account is already a member of this group." if is_member?
|
||||
raise GabSocial::ValidationError, "Account is removed from this group." if is_removed?
|
||||
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue