chore: refresh gramsrv public release
This commit is contained in:
parent
75cebe8dbf
commit
70b6820474
1274 changed files with 378751 additions and 59919 deletions
10
internal/store/postgres/channel_invite_helpers.go
Normal file
10
internal/store/postgres/channel_invite_helpers.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package postgres
|
||||
|
||||
import (
|
||||
"telesrv/internal/domain"
|
||||
)
|
||||
|
||||
func canExportChannelInvite(member domain.ChannelMember) bool {
|
||||
return member.Role == domain.ChannelRoleCreator ||
|
||||
(member.Role == domain.ChannelRoleAdmin && (member.AdminRights.InviteUsers || member.AdminRights.ChangeInfo))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue