<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi,</p>
<p>If you want to edit the permission of one specific user you can
subtract a role from within their profile. In the Account stage
of the user workflow add this as a new role in the Roles section:</p>
<p>-eprint/inbox/remove:owner</p>
<p>This means the user cannot delete any new EPrint records in their
inbox. Default settings for EPrints means regular users (not
admin or editors) can only delete their own eprint records when
they are in their inbox, so this settings will prevent them
removing an eprint record in any scenario (technically you should
also add -eprint/inbox/destroy:owner as another separate role, so
the user's credentials cannot be used to delete their eprint
records via the REST API).</p>
<p>If you want to prevent all regular users from being able to
delete their own records when in their user inbox, then you need
to make a local copy of flavours/pub_lib/cfg.d/user_roles.pl (or
lib/cfg.d/user_roles.pl if running EPrints 3.3) in your archive's
cfg/cfg.d/ directory and add the line:</p>
<p>-eprint/inbox/remove:owner</p>
<p>at the bottom of the list of user roles for a user (i.e.
$c->{user_roles}->{user}). Once edited your will need to
reload you webserver for the change to take effect.</p>
<p>I am not exactly sure what you mean by not being able to "to
create items when the previously created item hasn't finished the
review process" but I assume that effectively means a user should
only be able to have one eprint item that is not yet live in the
archive. It is not possible, as far as I know, to set conditional
permissions like this. You could potentially modify the code to
not display the "New Item" button (on the Manage deposits page)
based on certain conditions like this. However, I would generally
advise against this. As it may have unintended side effects or
create issues when you want to upgrade.</p>
<p>Regards</p>
<p>David Newman<br>
</p>
<div class="moz-cite-prefix">On 16/02/2021 01:17, Ajunk Pracetio via
Eprints-tech wrote:<br>
</div>
<blockquote type="cite" cite="mid:EMEW3|0b66c373e1ebb1a8f0a3ae36583ef628x1F1IZ14eprints-tech-bounces|ecs.soton.ac.uk|CACOEPmOuBUMp2MnMBWxr3oKZ9Q5r7Sc5uFQp8dLXjAq-MghF1A@mail.gmail.com">
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970;
background-color:#F7F9FA; color:#8D3970; font-size:14px;
line-height:22px; font-family: Calibri, Arial, Helvetica,
sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the
University of Southampton.
</div>
</div>
<div>
<div dir="ltr">Hi,<br>
<div><br>
</div>
<div>I want to ask about User Roles. Can the administrator
restrict users from deleting items that have already been
created? or restrict the user from being able to create
items when the previously created item hasn't finished the
review process?<br>
</div>
<div><br>
</div>
<div>Thank you.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Agung Prasetyo Wibowo.</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C926329d8c074422ac70108d8d25300f8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637490601890041898%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=rK4dSwPPQJCBd2ygSOo9hXFb%2BztPNL5%2BEDo39pXycG0%3D&reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="RK4re/3ROWou8pftXQfcoDLnB8fS5TXtbsaU9UDVN1GertCFGl5xr7Vs5+VihX0aR9/LmWrb7/dBgV12/8/Ht5lMaBsAqNUHoWcEUJ8u1ePIU2mqL60iC3hqk2bnXMMKuTnLihTVFQVyY0AeJOTQyYGu0Z3p4p0aUO/YG07dOpY=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C926329d8c074422ac70108d8d25300f8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637490601890051853%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=j2bfl40u7ST6LME0HFJ4zb82ilIHvgSA5IA755atGHw%3D&reserved=0" originalSrc="http://wiki.eprints.org/" shash="FWLFy+W7W4vzG4WVgUATBy9GK7V75whayMPK84UgSKw5hAbNkok9ejcSsD5PyNq0NF7KfjaQyAsZP8QsTqvn4xn9eVdOcXsfu39L9LnIlSs21cdKYSwBFLn91pFij7x0Eg8QiV50At6hoYMkOCtPh3yo/OARN96/fZqvzEAQ/4w=">http://wiki.eprints.org/</a></pre>
</blockquote>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C926329d8c074422ac70108d8d25300f8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637490601890051853%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0rxcwApneS4KJAmkTQ%2B%2F52lC%2FEXlzNkQz98RivFrUMU%3D&reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="ZIWd+0dlhiQjn2uk24Wyhg61oPtMzIdid7Wd78LFBGtApsd51ibcTLO6t7g+AdgTGX1dW9Ue46RUxs7BGe8bWP172hpQjJMUYNLBLI+3DV8YQLYlir3hOxC0KbmS3i9T89b7dcYM0v/7Ix9zVYPrpsn4B+zpkV+kWoJiRW/MmPE=" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C926329d8c074422ac70108d8d25300f8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637490601890051853%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0rxcwApneS4KJAmkTQ%2B%2F52lC%2FEXlzNkQz98RivFrUMU%3D&reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="ZIWd+0dlhiQjn2uk24Wyhg61oPtMzIdid7Wd78LFBGtApsd51ibcTLO6t7g+AdgTGX1dW9Ue46RUxs7BGe8bWP172hpQjJMUYNLBLI+3DV8YQLYlir3hOxC0KbmS3i9T89b7dcYM0v/7Ix9zVYPrpsn4B+zpkV+kWoJiRW/MmPE=" target="_blank" style="color: #4453ea;">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>