Skip to content

Fine grained permissions: consultations#3236

Merged
mrcasals merged 18 commits intofine-grained-permissions-adminfrom
fine-grained-permissions-consultations
Apr 17, 2018
Merged

Fine grained permissions: consultations#3236
mrcasals merged 18 commits intofine-grained-permissions-adminfrom
fine-grained-permissions-consultations

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

🎩 What? Why?

Fixes the consultations specs by moving it to the permissions system.

Note that this PR is against #3137 instead of master.

📌 Related Issues

📋 Subtasks

None

@mrcasals mrcasals force-pushed the fine-grained-permissions-consultations branch from 4a380d7 to 28fe7ef Compare April 16, 2018 13:56
when :create, :read, :publish
allow!
when :update, :destroy, :preview
toggle_allow(consultation.present?)
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.

Sorry to ask (I know this API was probably introduced in another PR) but what does toggle_allow do, exactly? It sounds a bit confusing / misleading.

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.

Can be changed in #3137 if needed. If the condition evaluates to true, it calls allow! on the permission, otherwise it calls disallow! on it.

@mrcasals mrcasals merged commit ae7f740 into fine-grained-permissions-admin Apr 17, 2018
@ghost ghost removed the status: WIP label Apr 17, 2018
@mrcasals mrcasals deleted the fine-grained-permissions-consultations branch April 17, 2018 07:36
@mrcasals mrcasals added this to the CDP1 milestone Dec 10, 2018
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.

2 participants