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

Add a button to change the main beneficiary of a membership (#562) #563

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

petitalb
Copy link
Collaborator

Ajout d'un bouton permettant de définir un bénéciaire comme le bénéficiaire principal du compte

image

Ajout d'un label pour indiquer le bénéciaire principal

image

Copy link
Member

@raphodn raphodn left a comment

Choose a reason for hiding this comment

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

cool :)

{
$session = new Session();
$member = $beneficiary->getMembership();
$this->denyAccessUnlessGranted('edit', $member);
Copy link
Member

Choose a reason for hiding this comment

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

c'est quoi la différence entre denyAccessUnlessGranted vs un truc plus global genre ROLE_USER_MANAGER ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Je pense que le denyAccessUnlessGranted est un peu mieux car il n'expose pas directement les règles ROLE_USER_MANAGER mais en vrai je n'ai pas regardé. J'ai juste repris ce qui était pour les autres méthodes.

Copy link
Member

Choose a reason for hiding this comment

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

D'acc, j'ai pas encore vu où il y avait un mapping entre les rôles et ces "actions". Dans mes modifs récentes j'ai parfois remplacé par des rôles pour simplifier. On en rediscutera

@petitalb petitalb merged commit f2e666a into master Oct 28, 2022
@petitalb petitalb deleted the feature/add-set-main-beneficiary branch December 10, 2022 19:48
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.

Pouvoir inverser un bénéficiaire principal et un bénéficiare secondaire
2 participants