-
Notifications
You must be signed in to change notification settings - Fork 5
update before actions in scratch controller #887
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
Changes from all commits
22930ed
6843e7b
2a73b6b
9a9591c
53a8a39
233be29
4dbee2d
1b0e68f
cfe3aab
e4b170a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,10 @@ | |
|
|
||
| module Api | ||
| module Scratch | ||
| class ProjectsController < ScratchController | ||
| class ProjectsController < ApiController | ||
| include RemixSelection | ||
|
|
||
| before_action :authorize_user, except: %i[show] | ||
|
cursor[bot] marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remix checks create not showMedium Severity After dropping the school-only gate, non-school users can hit scratch remix Reviewed by Cursor Bugbot for commit 6843e7b. Configure here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is valid. The original_project allows a non school user the :show action on an anonymous project, which is all that's needed to remix
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It works in your test, which is good enough for me.
rammodhvadia marked this conversation as resolved.
|
||
| before_action :load_project, except: %i[create] | ||
| authorize_resource :project, except: %i[create] | ||
|
rammodhvadia marked this conversation as resolved.
|
||
|
|
||
|
|
||
This file was deleted.


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this go up to
ScratchControllersince it's used in both controllers? Alternatively we should probably removeScratchControlleras it's now empty.