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

KG - SSR 'Edit' Button Bugs #426

Merged
merged 7 commits into from May 27, 2016
Merged

KG - SSR 'Edit' Button Bugs #426

merged 7 commits into from May 27, 2016

Conversation

kayla-glick
Copy link
Contributor

No description provided.

@@ -29,7 +29,7 @@ def index
service_request = ServiceRequest.find(params[:srid])
protocol = service_request.protocol
@admin_orgs = @user.authorized_admin_organizations
@permission_to_edit = protocol.project_roles.find_by(identity_id: @user.id)
@permission_to_edit = !protocol.project_roles.find_by(identity_id: @user.id, project_rights: ['approve', 'request']).nil?
@sub_service_requests = service_request.sub_service_requests
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Find roles where 'approve' or 'request' rights, then use !.nil? to for 'are there any?'. Returns boolean value now

@amcates amcates merged commit dd8b379 into master May 27, 2016
@amcates amcates deleted the kg-edit_ssr_button branch May 27, 2016 16:07
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

Successfully merging this pull request may close these issues.

None yet

2 participants