Revision d7c67746
Added by Michael Moll almost 6 years ago
app/helpers/users_helper.rb | ||
---|---|---|
end
|
||
|
||
def user_taxonomies_html_options(user)
|
||
{
|
||
:location => { :onchange => 'tfm.users.taxonomyAdded(this, "location")'},
|
||
:organization => { :onchange => 'tfm.users.taxonomyAdded(this, "organization")'}
|
||
} unless user.admin?
|
||
unless user.admin?
|
||
{
|
||
:location => { :onchange => 'tfm.users.taxonomyAdded(this, "location")'},
|
||
:organization => { :onchange => 'tfm.users.taxonomyAdded(this, "organization")'}
|
||
}
|
||
end
|
||
end
|
||
|
||
def mail_notification_query_builder(mail_notification, f)
|
Also available in: Unified diff
Fixes #19873 - Fix Style/MultilineIfModifier cop (#5705)