Skip to main content
Topic: Features or permissions required to delete your own post attachments (Read 1440 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Features or permissions required to delete your own post attachments

What permission is required to allow users to delete attachments from their own posts, when they have the permission to edit their own posts?

Re: Features or permissions required to delete your own post attachments

Reply #1

I would think a user in a group that has permission to delete and modify their own posts can delete the attachments in their own posts.. (Maybe delete own post permission isn't necessary?)

Admin --> Members --> General Permissions --> Posts --> Delete Own Posts --> Allowed
Admin --> Members --> General Permissions --> Posts --> Modify Own Posts --> Allowed
Admin --> Members --> General Permissions --> Attachments --> View Attachments --> Allowed
Admin --> Members --> General Permissions --> Attachments --> Post Attachments --> Allowed

If not v1.1.6, ymmv...(your mileage may vary)
Last Edit: January 22, 2022, 04:39:31 am by Steeley

// Deep inside every dilemma lies a solution that involves explosives //

Re: Features or permissions required to delete your own post attachments

Reply #2

I think the conditions that allow that action are:

Has moderator / admin manage attachments permission ...  PASS

Message is not locked, they have the attach permissions (board and member) and then meets one of the following conditions:
     - Has modify any permission (thats really a local moderator level item)
or
     - Is the owner of the message and within edit_disable_time <-- typical
or
     - Is allowed to edit messages in a thread they started <-- kind of special but would allow removing from other messages.

If there is a problem, please let us know :D

Re: Features or permissions required to delete your own post attachments

Reply #3

Yeah, this needs to be for any user, not just moderator / admin.

Re: Features or permissions required to delete your own post attachments

Reply #4

Then that would be this part:

1) Message is not locked,
2) Member has attach permissions (both for the board and general member permissions)
3) Is the owner of the message and within edit_disable_time

Re: Features or permissions required to delete your own post attachments

Reply #5

Ah, then it's not a permission being granted by the modification I'm using that allows specific user groups to dodge the edit_disable_time.

Re: Features or permissions required to delete your own post attachments

Reply #6

Quote from: kode54 – Ah, then it's not a permission being granted by the modification I'm using that allows specific user groups to dodge the edit_disable_time.

At the risk of branching this thread, this reminds me of a related PIR that I forgot to post up from a couple years ago - in addition to an edit time limit option. an alternative option that allows poster edits until the post has been replied to... (after which only a moderator can alter it).. I'll start a separate topic unless spuds puts it on his todo list from this mention..

// Deep inside every dilemma lies a solution that involves explosives //

Re: Features or permissions required to delete your own post attachments

Reply #7

Tightening up the permissions (which is a nice way of saying properly enforcing them) was one of the 1.1.8 changes.  If you need to play with those they are located the ManageAttachments.subs.php file, look at the canRemoveAttachment() function at the end.

Quote from: Steeley – At the risk of branching this thread, this reminds me of a related PIR that I forgot to post up from a couple years ago - in addition to an edit time limit option. an alternative option that allows poster edits until the post has been replied to... (after which only a moderator can alter it).. I'll start a separate topic unless spuds puts it on his todo list from this mention..
Probably worth its own thread.

Re: Features or permissions required to delete your own post attachments

Reply #8

Quote from: Spuds –
Quote from: Steeley – At the risk of branching this thread, this reminds me of a related PIR that I forgot to post up from a couple years ago - in addition to an edit time limit option. an alternative option that allows poster edits until the post has been replied to... (after which only a moderator can alter it).. I'll start a separate topic unless spuds puts it on his todo list from this mention..
Probably worth its own thread.

DONE

// Deep inside every dilemma lies a solution that involves explosives //