Skip to content

add admin_required to Script DSL#4811

Merged
laurelfan merged 3 commits into
stagingfrom
script-admin_required2
Oct 26, 2015
Merged

add admin_required to Script DSL#4811
laurelfan merged 3 commits into
stagingfrom
script-admin_required2

Conversation

@laurelfan

Copy link
Copy Markdown
Contributor

No description provided.

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.

Can you use generate_admin_only_tests_for in dashboard/test/test_helper.rb?

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.

not as written because I need to create a script. I could maybe change the generate_admin_only_tests_for to yield to a block instead of take params so I could have both the get and the create in there

Comment thread dashboard/test/dsl/dsl_test.rb Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

our .script files usually have true in single quotes.. does it matter?

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.

ha, it's supposed to be a string, it coincidentally works for boolean true also. I will add another test so we have a test with both.

@breville

Copy link
Copy Markdown
Member

lgtm

laurelfan added a commit that referenced this pull request Oct 26, 2015
@laurelfan laurelfan merged commit b5fa69b into staging Oct 26, 2015
deploy-code-org added a commit that referenced this pull request Oct 26, 2015
0578c5c Merge pull request #4742 from code-dot-org/configCleanup (Bjvanminnen)
75af0cc Merge pull request #4815 from code-dot-org/levelbuilder (Laurel)
dfe9ba3 Merge pull request #4814 from code-dot-org/fix-applab-most-recent (Josh Lory)
ff5f925 content changes (-laurel) (Continuous Integration)
e3cd8cf When logging in, auth before `most_recent` to get the correct project (Josh Lory)
8083ad5 Merge pull request #4813 from code-dot-org/staging (Laurel)
b5fa69b Merge pull request #4811 from code-dot-org/script-admin_required2 (Laurel)
@laurelfan laurelfan deleted the script-admin_required2 branch October 30, 2015 20:41
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.

3 participants