Skip to content

Hide stages non authorized#9723

Closed
Bjvanminnen wants to merge 2 commits into
stagingfrom
hideStagesNonAuthorized
Closed

Hide stages non authorized#9723
Bjvanminnen wants to merge 2 commits into
stagingfrom
hideStagesNonAuthorized

Conversation

@Bjvanminnen

Copy link
Copy Markdown
Contributor

For stages that are lockable, don't show them unless you're (a) an authorized teacher or (b) a student of an authorized teacher.

end

def summarize
def summarize(user)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ideally the user-specific data would be returned by UsersHelper#summarize_user_progress. We've intentionally tried to keep these APIs anonymous & cacheable.

(Same for ApiController#script_structure above.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That makes sense. I think this means what I'll have to do is start out by hiding all lockable stages, then upon getting user progress (something we do asynchronously) unhide the lockable stages as appropriate. This might be kind of weird having new stages suddenly appear, but perhaps not any weirder than having progress appear asynchronously.

@Bjvanminnen

Copy link
Copy Markdown
Contributor Author

Replaced by #9739

@Bjvanminnen Bjvanminnen deleted the hideStagesNonAuthorized branch August 29, 2016 16:13
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