Skip to content

Conversation

@ImTheKai
Copy link
Collaborator

No description provided.

Signed-off-by: Kai Wagner <kai.wagner@percona.com>
@ImTheKai ImTheKai requested a review from dutow January 14, 2026 15:31
@can_manage = user_signed_in? && @team.admin?(current_user)
@can_invite = user_signed_in? && (@team.member?(current_user) || @team.admin?(current_user))
@can_invite = user_signed_in? && @team.admin?(current_user)
@can_view_invite = user_signed_in? && @team.member?(current_user)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This new permission doesn't help, we already have a :before_action require_team_member! - only team members can see the page anyway. (and even if others could, displaying that message to them makes sense)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah totally right, missed that and dropped it.

Signed-off-by: Kai Wagner <kai.wagner@percona.com>
@ImTheKai ImTheKai merged commit 0028119 into Percona-Lab:main Jan 14, 2026
3 checks passed
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.

2 participants