Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Add user check org org manager #1202

Merged
merged 4 commits into from
Aug 25, 2017
Merged

Add user check org org manager #1202

merged 4 commits into from
Aug 25, 2017

Conversation

rememberlenny
Copy link
Contributor

No description provided.

@@ -230,11 +234,16 @@ export default class Users extends React.Component {
get userParentEntityUserSelector() {
// only show something if in a space and if the user is a org manager
// or space manager.
if (!this.isSpace ||
Copy link
Contributor

Choose a reason for hiding this comment

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

could you revert this change and line 241-245

el-mapache
el-mapache previously approved these changes Aug 25, 2017
Copy link
Contributor

@el-mapache el-mapache left a comment

Choose a reason for hiding this comment

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

One question, otherwise looks good!

return null;
}

if (!this.currentUserIsOrgManager) {
Copy link
Contributor

@el-mapache el-mapache Aug 25, 2017

Choose a reason for hiding this comment

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

could this be !this.currentUserIsOrgManager && !this.currentUserIsSpaceManager?

EDIT: I see from the deleted lines it could, maybe revert the change as @jcscottiii suggests but move the logic to a method?

@jcscottiii jcscottiii merged commit 3ade394 into master Aug 25, 2017
@jcscottiii jcscottiii deleted the lkb-roles-as-orgman branch August 25, 2017 16:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants