mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-30 04:02:48 +08:00
Fix a bug
This commit is contained in:
parent
9260ed31f3
commit
9438ba7e10
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ text_invite_heading ||= nil
|
|||
|
||||
<% if type.in?(['invite_with_org_selector', 'invite_with_org_selector_and_role']) %>
|
||||
<% # Only allow inviting to organizations where user is admin %>
|
||||
<% uos = current_user.user_organizations.where(role: UserOrganization.roles[:admin]).joins(:organization) %>
|
||||
<% uos = current_user ? current_user.user_organizations.where(role: UserOrganization.roles[:admin]).joins(:organization) : [] %>
|
||||
<% if uos.count > 0 %>
|
||||
<div class="org-selector">
|
||||
<div class="heading">
|
||||
|
|
Loading…
Reference in a new issue