mirror of
https://github.com/github-tijlxyz/khatru-pyramid.git
synced 2025-04-22 16:51:29 +00:00
prevent "remove" button for showing for users logged as nothing.
This commit is contained in:
parent
952d5f9f06
commit
568e47c00e
@ -20,7 +20,7 @@ func inviteTreeComponent(ctx context.Context, inviter string, loggedUser string)
|
||||
|
||||
func userRowComponent(ctx context.Context, profile sdk.ProfileMetadata, loggedUser string) HTMLComponent {
|
||||
button := Span("")
|
||||
if isAncestorOf(loggedUser, profile.PubKey) && loggedUser != profile.PubKey {
|
||||
if isAncestorOf(loggedUser, profile.PubKey) && loggedUser != "" {
|
||||
button = Button("remove").
|
||||
Class(buttonClass+" px-2 bg-red-100 hover:bg-red-300").
|
||||
Attr(
|
||||
|
Loading…
x
Reference in New Issue
Block a user