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 633 #1992

Merged
merged 3 commits into from
Nov 10, 2016
Merged

Fix 633 #1992

merged 3 commits into from
Nov 10, 2016

Conversation

antgonza
Copy link
Member

@antgonza antgonza commented Nov 7, 2016

After discussing with @josenavas we agreed that the easiest solution was to simply add those non public studies to the admins listing.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 787b8ad on antgonza:fix-633 into * on biocore:master*.

Copy link
Contributor

@josenavas josenavas left a comment

Choose a reason for hiding this comment

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

Just one comment!

user_study_set = user.user_studies.union(user.shared_studies)
study_set = user_study_set - Study.get_by_status('public')
else:
portal_set = Portal(qiita_config.portal).get_studies()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this line needed? Study.get_by_status should already return the studies that are only visible in the current portal. If not, there is a bug in that function so I would prefer to change that function rather than patch it here.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 60a53c9 on antgonza:fix-633 into * on biocore:master*.

@ElDeveloper ElDeveloper merged commit e72ad89 into qiita-spots:master Nov 10, 2016
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

4 participants