Skip to content

Commit

Permalink
Fix permissions to invite button
Browse files Browse the repository at this point in the history
We will show the button to everyone who has the rights to manage user accounts.

Fixes #25682
  • Loading branch information
brlumen authored and vboctor committed Apr 13, 2019
1 parent 113a270 commit 0d6256d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/layout_api.php
Expand Up @@ -546,7 +546,7 @@ function layout_navbar_button_bar() {
$t_show_report_bug_button = access_has_any_project_level( 'report_bug_threshold' ) &&
!is_page_name( string_get_bug_page( "report" ) ) &&
!is_page_name( string_get_bug_page( "update" ) );
$t_show_invite_user_button = current_user_is_administrator();
$t_show_invite_user_button = access_has_global_level( config_get( 'manage_user_threshold' ) );

if( !$t_show_report_bug_button && !$t_show_invite_user_button ) {
return;
Expand Down

0 comments on commit 0d6256d

Please sign in to comment.