Skip to content

[FIX] Allow user with "bulk-register-user" permission to send invitations#12112

Merged
geekgonecrazy merged 3 commits intoRocketChat:developfrom
assistify:core/fix/bulk-invite-users
Sep 25, 2018
Merged

[FIX] Allow user with "bulk-register-user" permission to send invitations#12112
geekgonecrazy merged 3 commits intoRocketChat:developfrom
assistify:core/fix/bulk-invite-users

Conversation

@mrsimpson
Copy link
Contributor

What this fixes

When allowing a user to send invitation mails (permission bulk-register-users), a user who already had the permission to view administration and manage users could still not send the invitation emails. The panel was simply blank.

screenshot 2018-09-20 08 00 01

How it's been implemented

The authorization bulk-register-users was not checked earlier, but whether the user has the admin role.
Since bulk-register-users is assigned to admin by default, the permission can safely be used without data migration.

@mrsimpson mrsimpson requested a review from a team September 20, 2018 06:12
@mrsimpson mrsimpson self-assigned this Sep 20, 2018
@geekgonecrazy geekgonecrazy merged commit 82666e0 into RocketChat:develop Sep 25, 2018
This was referenced Sep 28, 2018
@mrsimpson mrsimpson deleted the core/fix/bulk-invite-users branch December 7, 2020 09:08
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

Comments