EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09850
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
RE: [EP-tech] Remove versioning and template for users
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: RE: [EP-tech] Remove versioning and template for users
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Tue, 22 Oct 2024 14:58:55 +0000
CAUTION: This e-mail originated outside the University of Southampton. Hi Yuri, Both the 'New Version' and 'Use as Template' functions have a specific privilege that governs whether a user can see them. New Version: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F2467b680373ac7be831e729a50c632ba7ec15e85%2Fperl_lib%2FEPrints%2FPlugin%2FScreen%2FEPrint%2FNewVersion.pm%23L37-L42&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Cf6807e8b93e543a8889e08dcf2aa0e58%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638652059424609733%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=B0kmv2lBVejHe98wUfL2rdrtEAGQ7N831FQ8Tt4GGi4%3D&reserved=0 Use as Template: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F2467b680373ac7be831e729a50c632ba7ec15e85%2Fperl_lib%2FEPrints%2FPlugin%2FScreen%2FEPrint%2FUseAsTemplate.pm%23L37-L42&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Cf6807e8b93e543a8889e08dcf2aa0e58%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638652059424609733%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=nAj3GswqfBXPbFA84lYb5dhbMmO8t%2F7pqesAI1vm0x4%3D&reserved=0 By default, these privileges are granted to the 'deposit' role (which a normal 'user' has) : https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F2467b680373ac7be831e729a50c632ba7ec15e85%2Fperl_lib%2FEPrints%2FDataObj%2FUser.pm%23L330-L386&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Cf6807e8b93e543a8889e08dcf2aa0e58%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638652059424609733%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=xl0RrQ1DvksIEOCMJNizlYCCOc9Sy%2F6%2BgI3pdhIAeRk%3D&reserved=0 In the archive config, you can remove specific privileges from a role e.g. in: ~/archives/ARCHIVEID/cfg/cfg.d/user_roles.pl by prefixing a '-' to them - so you would end up with something like this: $c->{user_roles}->{user} = [qw{ general edit-own-record saved-searches set-password deposit change-email -eprint/inbox/use_as_template:owner -eprint/inbox/derive_version:owner -eprint/buffer/use_as_template:owner -eprint/buffer/derive_version:owner -eprint/archive/use_as_template:owner -eprint/archive/derive_version:owner -eprint/deletion/use_as_template:owner -eprint/deletion/derive_version:owner }]; If your archive config doesn't have the user_roles.pl file, the default version is ~/lib/cfg.d/user_roles.pl (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F2467b680373ac7be831e729a50c632ba7ec15e85%2Flib%2Fcfg.d%2Fuser_roles.pl%23L12-L19&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Cf6807e8b93e543a8889e08dcf2aa0e58%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638652059424765979%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=OwlnSs1skSvgGfjSzhAxT8oNmqRr451tHgrgb4GP%2Bz4%3D&reserved=0) Copy that into your archive config before editing it. You can also assign/remove privileges for specific individual users in their user profiles if needed. More details about Roles and Privileges are here: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FUser_Roles_and_Privileges&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Cf6807e8b93e543a8889e08dcf2aa0e58%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638652059424765979%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=w9T05Vp9Yo0GFnXdZbVDtb2TMCP8xiZNRrUSmVyoWCY%3D&reserved=0 Cheers, John -----Original Message----- From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Yuri Sent: Tuesday, October 22, 2024 2:53 PM To: EPrints.org Technical List <eprints-tech@ecs.soton.ac.uk> Subject: [EP-tech] Remove versioning and template for users CAUTION: External Message. Use caution opening links and attachments. CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Hi! our users use the templating and versioning in a different way that eprints does, so usually we've to fix something. Add DOI registration (that will be assigned only on the first item, not the copy or the newer version because the DOI field is already filled), and we have more problems that what this functions solve. What is the easiest way to remove this function for users? Are these capabilities or I've to expect for some code changes? Thanks!
- References:
- [EP-tech] Remove versioning and template for users
- From: Yuri <yurj@alfa.it>
- [EP-tech] Remove versioning and template for users
- Prev by Date: [EP-tech] Remove versioning and template for users
- Next by Date: RE: [EP-tech] Remove versioning and template for users
- Previous by thread: [EP-tech] Remove versioning and template for users
- Next by thread: RE: [EP-tech] Remove versioning and template for users
- Index(es):