~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
1 year, 4 months ago
Updated
3 months ago
Labels
No labels applied.

~exprez135 3 months 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 3 months 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 3 months ago

~exprez135 3 months ago

Fixed with 09efc588.

~sircmpwn REPORTED FIXED 3 months ago

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