Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The link to Documents should only be available to admin. #14

Closed
captproton opened this issue Jul 30, 2019 · 1 comment
Closed

The link to Documents should only be available to admin. #14

captproton opened this issue Jul 30, 2019 · 1 comment

Comments

@captproton
Copy link
Collaborator

Any link to documents used for Agreements should only be made available to users with the admin attribute set to true.
Screen Shot 2019-07-30 at 7 56 43 AM

@captproton
Copy link
Collaborator Author

FIX: used this conditional:

  <% if current_user.admin? %>
<li>
	<%= link_to documents_path  do %>
	<i class="fa fa-book"></i> <span>Documents</span>
	<% end -%>
</li>
<% end -%>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant