Skip to content
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

Facilitators can create workshops with regional partners #20881

Merged

Conversation

mehalshah
Copy link
Contributor

@mehalshah mehalshah commented Feb 24, 2018

Facilitators now have permissions to create workshops with regional partners

@mehalshah mehalshah force-pushed the facilitators_can_create_workshops_with_regional_partners branch from b860130 to ecbf985 Compare February 26, 2018 20:50
@tanyaparker
Copy link
Contributor

@mehalshah mehalshah force-pushed the facilitators_can_create_workshops_with_regional_partners branch from 02158fa to 659540c Compare February 26, 2018 22:51
Copy link
Contributor

@aoby aoby left a comment

Choose a reason for hiding this comment

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

LGTM

Our client-side permissions are fairly scattered. I wonder if it would make sense to consolidate into the permissions class, adding properties like canCreateWorkshop, canDeleteWorkshop etc?


return (
<div>
<h1>Your Workshops</h1>
<ButtonToolbar>
{(this.permission.isWorkshopAdmin || this.permission.isOrganizer) &&
{(this.permission.isWorkshopAdmin || this.permission.isOrganizer || this.permission.isCsfFacilitator) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

How about calling this out above as const canCreate, like we do for canDelete, for consistency and readability?

@mehalshah mehalshah merged commit be79a5c into staging Feb 27, 2018
@balderdash balderdash deleted the facilitators_can_create_workshops_with_regional_partners branch September 20, 2018 17:51
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.

None yet

3 participants