~sircmpwn/lists.sr.ht#92: 
Hide "new post" tab if user does not have posting permissions

On lists where users do not have posting permissions, the "new post" button is hidden in the sidebar but not on the top (where the "archives" tab is).

Status
RESOLVED FIXED
Submitter
~archaeme
Assigned to
No-one
Submitted
6 years ago
Updated
4 years ago
Labels
No labels applied.

~exprez135 4 years ago

I think we could easily do this with a simple:

{% if ListAccess.post in access %}
[stuff here]
{% endif %}

But that would also remove the button for someone browsing unauthenticated on the site, whose email would still have post access. Does that matter or should it be removed anyhow?

~sircmpwn 4 years ago

If someone was explicitly added to the ACL, then whoever added them can give them the posting address while they're at it.

~exprez135 4 years ago

~exprez135 4 years ago

Fixed with 09efc588.

~sircmpwn REPORTED FIXED 4 years ago

Register here or Log in to comment, or comment via email.