Skip to content

Best way to check global admin user permission when the team feature is enabled #1990

Answered by erikn69
hl2000 asked this question in Q&A
Discussion options

You must be logged in to vote

If i understood

like how many members are in each team, who are the members, and who is the team leader.

#1935 Makes a relation on team, and add withCount(['roles as users_count'=>fn($q)=>your_custom_logic_with_distinct]) and use with for get members, team leader, etc

#1948 Maybe informative

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@hl2000
Comment options

@erikn69
Comment options

@hl2000
Comment options

@erikn69
Comment options

Answer selected by hl2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants