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

Fix SA in shared inventories [SCI-11513] #8196

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

aignatov-bio
Copy link
Contributor

@aignatov-bio aignatov-bio commented Jan 30, 2025

Jira ticket: SCI-11513

What was done

Fix SA in shared inventories

end

def validate_tsk_permissions(user, team, object)
can_read_my_module?(user, object) && validate_exp_permissions(user, team, object.experiment)
MyModule.viewable_by_user(user, team).find_by(id: object.id).present?
Copy link
Contributor

Choose a reason for hiding this comment

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

replace .find_by(id: object.id).present? with exists?(id: object.id)

@aignatov-bio aignatov-bio force-pushed the ai-sci-11513-smart-annotations-in-shared-inventory branch from 70ef3d3 to 39948d6 Compare January 30, 2025 14:09
@aignatov-bio aignatov-bio changed the base branch from features/small-improvements to develop January 30, 2025 14:10
Copy link
Contributor

@artoscinote artoscinote left a comment

Choose a reason for hiding this comment

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

need to review performance concerns

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.

2 participants