mirror of
https://github.com/System-End/nephthys.git
synced 2026-04-19 23:22:50 +00:00
why are tags admin only
This commit is contained in:
parent
ce31244143
commit
27636a5ce1
1 changed files with 9 additions and 9 deletions
|
|
@ -12,15 +12,15 @@ def get_buttons(user: User, current: str = "dashboard"):
|
|||
**({"style": "primary"} if current != "dashboard" else {}),
|
||||
}
|
||||
)
|
||||
if user.admin:
|
||||
buttons.append(
|
||||
{
|
||||
"type": "button",
|
||||
"text": {"type": "plain_text", "text": "Tags", "emoji": True},
|
||||
"action_id": "tags",
|
||||
**({"style": "primary"} if current != "tags" else {}),
|
||||
}
|
||||
)
|
||||
# if user.admin:
|
||||
buttons.append(
|
||||
{
|
||||
"type": "button",
|
||||
"text": {"type": "plain_text", "text": "Tags", "emoji": True},
|
||||
"action_id": "tags",
|
||||
**({"style": "primary"} if current != "tags" else {}),
|
||||
}
|
||||
)
|
||||
|
||||
buttons.append(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue