Skip to content

Pass user context when opening a doc in show handler - #788

Merged
eiri merged 1 commit into
apache:masterfrom
cloudant:issue-653-pass-user_ctx-to-_show
Sep 5, 2017
Merged

Pass user context when opening a doc in show handler#788
eiri merged 1 commit into
apache:masterfrom
cloudant:issue-653-pass-user_ctx-to-_show

Conversation

@eiri

@eiri eiri commented Sep 4, 2017

Copy link
Copy Markdown
Member

Overview

A request to view's _show supposed to work on admin-only databases, such as _users when accessed with admin's privileges. This fix passes user context to fabric's open_doc allowing this to happen.

Testing recommendations

Included tests could be run as make javascript suites=users_db_security

Also "Steps to Reproduce" from issue #653 should now work as expected.

GitHub issue number

Fixes #653

Checklist

  • Code is written and works correctly;
  • Changes are covered by tests;
  • Documentation reflects the changes;

@iilyak iilyak left a comment

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.

Tests pass locally.

make javascript suites=users_db_security
test/javascript/tests/users_db_security.js   pass
=======================================================
JavaScript tests complete.
  Failed: 0.  Skipped or passed: 1.

@eiri
eiri merged commit d3c8d41 into apache:master Sep 5, 2017
@eiri
eiri deleted the issue-653-pass-user_ctx-to-_show branch September 5, 2017 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User context not passed in _show for _users database

2 participants