Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow people to search cyclescape without being logged in.

  • Loading branch information...
commit 40dc24eaacfa59ca9e7288481fb52ee86225119d 1 parent abaa649
@gravitystorm gravitystorm authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  config/authorization_rules.rb
View
3  config/authorization_rules.rb
@@ -17,7 +17,7 @@
role :member do
includes :guest
- has_permission_on :dashboards, to: [:show, :search]
+ has_permission_on :dashboards, to: [:show]
has_permission_on :group_members, :group_memberships do
to :manage
if_attribute committee_members: contains { user }
@@ -92,6 +92,7 @@
end
role :guest do
+ has_permission_on :dashboards, to: [:search]
has_permission_on :devise_sessions, :devise_registrations, :devise_confirmations,
:devise_invitations, :devise_passwords, to: :manage
has_permission_on :home, to: :show
Please sign in to comment.
Something went wrong with that request. Please try again.