Skip to content

Conversation

ravenstar
Copy link

This PR adds an admin option that if enabled will query the User object for the id found in the cookie payload if not first found in the usual base app object.

- Added `useUserObject` option: allow User object to be queried for uid from payload.
Copy link
Owner

@julianlam julianlam left a comment

Choose a reason for hiding this comment

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

I can't approve this until the indentation issues are resolved. In particular. session-sharing.tpl's entire file is changed because your editor converted to spaces, I think. Let's keep it to tabs here.

Also can you elaborate on the use of this admin option? Thanks

{
"name": "nodebb-plugin-session-sharing",
"version": "4.5.0",
"version": "4.5.1",
Copy link
Owner

Choose a reason for hiding this comment

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

Can you revert this line please?


if (plugin.settings.useUserObject === 'on')
queries.id = async.apply(db.getObjectField, 'user:' + userData.id, 'uid');

Copy link
Owner

Choose a reason for hiding this comment

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

Indentation should be tabs for this plugin, thanks

@julianlam julianlam self-assigned this Jun 14, 2019
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