config/chaltron_navigation.rb in chaltron-0.2.11 vs config/chaltron_navigation.rb in chaltron-0.3.0
- old
+ new
@@ -9,15 +9,15 @@
text: I18n.t('chaltron.menu.admin')
}, nil do |admin|
admin.item :users,
{ icon: 'fa fa-fw fa-users',
text: I18n.t('chaltron.menu.users')
- }, users_path, highlights_on: /\/(users|ldap)(?!\/self_(show|edit|update))/ if can?(:manage, User)
+ }, users_path, highlights_on: /\/(users|ldap)(?!\/self_(show|edit|update))/ if can?(:read, User)
admin.item :logs,
{ icon: 'fa fa-fw fa-book',
text: I18n.t('chaltron.menu.logs')
}, logs_path, highlights_on: /\/logs/ if can?(:read, Log)
- end if can?(:manage, User) or can?(:read, Log)
+ end if can?(:read, User) or can?(:read, Log)
primary.item :logged, current_user.display_name.html_safe, nil do |user|
user.dom_class = 'dropdown-menu-right'
user.item :self_edit, { icon: 'fa fa-fw fa-user',
text: I18n.t('chaltron.menu.self_show') }, self_show_users_path,
highlights_on: /\/self_(show|edit|update)/