mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 21:43:38 +00:00
fix: el parametro puede venir vacío
This commit is contained in:
parent
c2fbc06d41
commit
c9fa518b33
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ class UsuariesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def invite_as
|
def invite_as
|
||||||
Rol.role?(params[:invite_as].singularize) ? params[:invite_as] : Rol::INVITADE.pluralize
|
Rol.role?(params[:invite_as]&.singularize) ? params[:invite_as] : Rol::INVITADE.pluralize
|
||||||
end
|
end
|
||||||
|
|
||||||
def site
|
def site
|
||||||
|
|
Loading…
Reference in a new issue