EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #10214
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] How to remove "remove item (with notification)" button
- To: David R Newman <drn@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] How to remove "remove item (with notification)" button
- From: "Agung Prasetyo W." <prazetyo@gmail.com>
- Date: Wed, 27 Aug 2025 16:01:32 +0700
$c->{roles}->{"anti-privileges"} = [
"-eprint/inbox/destroy:owner",
"-eprint/inbox/remove:owner",
"-eprint/inbox/remove_with_email:owner",
"-eprint/remove_with_email",
];
Of the four lines above, which part removes the "remove (with notification)" button?
I'll try again.
Hi Agung,
This worked fine for me. Did you make sure you added these "anti-privileges" to both of the following in user_roles.pl:
$c->{user_roles}->{editor}
$c->{user_roles}->{admin}
If you created any other user types that have the 'editor' role, then you will also need to make sure you add these "anti-privileges" to that set of user rolles as well. If you did add all these anti-privileges you listed to all relevant sets of user roles, then possibly these are being overridden by another user_roles.pl. (Maybe you edited lib/cfg.d/user_roles.pl whilst there is an archives/ARCHIVE_ID/cfg/cfg.d/user_roles.pl). It is possible that another cfg.d file resets the user roles for some reason, (nothing in the default codebase does this), which means these anti-privileges get lost.
Also, I think you only need the remove_with_email permissions in your list unless you want to disable users from deleting items (without notification) that they created and have not been submitted for review or moved to the live archive.
Regards
David Newman
On 27/08/2025 04:35, Agung Prasetyo W. wrote:
CAUTION: This e-mail originated outside the University of Southampton.CAUTION: This e-mail originated outside the University of Southampton.Hi,
I'd like to ask how to remove the "Remove Item (With Notification)" button when on deposit process?
I've added several options to user_roles.pl, but it still doesn't work. I'm not sure if the options below are correct or not.
-eprint/inbox/remove_with_email:editor
-eprint/buffer/remove_with_email:editor
-eprint/inbox/remove:owner
Need your help.
Thank you.
Best regards,Agung PW
*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List *** Archive: https://www.eprints.org/tech.php/ *** EPrints community wiki: https://wiki.eprints.org/
- Follow-Ups:
- Re: [EP-tech] How to remove "remove item (with notification)" button
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] How to remove "remove item (with notification)" button
- References:
- [EP-tech] How to remove "remove item (with notification)" button
- From: "Agung Prasetyo W." <prazetyo@gmail.com>
- Re: [EP-tech] How to remove "remove item (with notification)" button
- From: David R Newman <drn@ecs.soton.ac.uk>
- [EP-tech] How to remove "remove item (with notification)" button
- Prev by Date: RE: [EP-tech] How to remove "remove item (with notification)" button
- Next by Date: Re: [EP-tech] How to remove "remove item (with notification)" button
- Previous by thread: Re: [EP-tech] How to remove "remove item (with notification)" button
- Next by thread: Re: [EP-tech] How to remove "remove item (with notification)" button
- Index(es):