[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] permission for "manage records"
Hi Tomasz and John,
I wrote a wiki page listing all user roles and privileges a while back:
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FListings_of_User_Roles_and_Privileges&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C84b5a7becdc147eae68208dadd703af9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638065771409467910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=y8BCvCyEIvxhLmhDdJh7zCEvk5J2RC2Flg97d7Cxcas%3D&reserved=0
I think this pretty much confirms what you asserted but may contain
other useful information.
Regards
David Newman
On 13/12/2022 10:47 pm, Tomasz Neugebauer via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Hi John,
>
> Thank you, yes, I was able to figure it out by looking at the code.
> The solution was to add the following:
> +DATASET_NAME/view
> So in my case, since I wanted to grant access to view the listing of
> Archivematica dataset, it was:
> +archivematica/view
> The "Manage Records" link did not show up in the menu for the user,
> but knowing the link, the user gained access to the listing, so that
> solved my issue.
>
> Tomasz
>
>
>
> ------------------------------------------------------------------------
> *From:* John Salter <J.Salter at leeds.ac.uk>
> *Sent:* Tuesday, December 13, 2022 1:30 PM
> *To:* Tomasz Neugebauer <Tomasz.Neugebauer at concordia.ca>;
> eprints-tech at ecs.soton.ac.uk <eprints-tech at ecs.soton.ac.uk>
> *Subject:* RE: permission for "manage records"
>
> Attention This email originates from outside the concordia.ca domain.
> // Ce courriel provient de l'ext?rieur du domaine de concordia.ca
>
>
>
>
> Hi Tomasz,
>
> I think the screen you mean is EPrints::Plugin::Screen::DataSets*.
>
> In that case, there is the 'datasets' permission:
>
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F00cf55a8de6193528ee50b55dd9db04b36245b78%2Fperl_lib%2FEPrints%2FPlugin%2FScreen%2FDataSets.pm%23L34&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C84b5a7becdc147eae68208dadd703af9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638065771409467910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wOal2WYIuqN0hKz1Xlq7mbiPxnuNZZLujF98GA1cZQs%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F00cf55a8de6193528ee50b55dd9db04b36245b78%2Fperl_lib%2FEPrints%2FPlugin%2FScreen%2FDataSets.pm%23L34&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C84b5a7becdc147eae68208dadd703af9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638065771409467910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wOal2WYIuqN0hKz1Xlq7mbiPxnuNZZLujF98GA1cZQs%3D&reserved=0>
>
> This is included in the 'editor' role by default:
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F00cf55a8de6193528ee50b55dd9db04b36245b78%2Fperl_lib%2FEPrints%2FDataObj%2FUser.pm%23L390&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C84b5a7becdc147eae68208dadd703af9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638065771409467910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JfXe8vdqw9Xq9FhEG%2BsZ72UD8Ro3JJA4SV39WkRrpmU%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F00cf55a8de6193528ee50b55dd9db04b36245b78%2Fperl_lib%2FEPrints%2FDataObj%2FUser.pm%23L390&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C84b5a7becdc147eae68208dadd703af9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638065771409467910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JfXe8vdqw9Xq9FhEG%2BsZ72UD8Ro3JJA4SV39WkRrpmU%3D&reserved=0>
>
>
> The DataSets screen checks to see if the logged-in user has the rights
> to *view* the various datasets:
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F00cf55a8de6193528ee50b55dd9db04b36245b78%2Fperl_lib%2FEPrints%2FPlugin%2FScreen%2FDataSets.pm%23L73-L97&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C84b5a7becdc147eae68208dadd703af9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638065771409467910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VsSegsoxf0nlCJnAnpeT4si%2BADxNu2GbT%2FuqiVjE%2Fz4%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2F00cf55a8de6193528ee50b55dd9db04b36245b78%2Fperl_lib%2FEPrints%2FPlugin%2FScreen%2FDataSets.pm%23L73-L97&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C84b5a7becdc147eae68208dadd703af9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638065771409467910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VsSegsoxf0nlCJnAnpeT4si%2BADxNu2GbT%2FuqiVjE%2Fz4%3D&reserved=0>
>
>
> So you might want to give (or take away) some of those e.g. '-user/view'
>
> Does that help a bit more?
>
> Cheers,
>
> John
>
> * grep -r 'Manage records' lib/lang/
>
> lib/lang/en/phrases/system.xml: <epp:phrase
> id="Plugin/Screen/DataSets:title">Manage records</epp:phrase>
>
> *From:*Tomasz Neugebauer [mailto:Tomasz.Neugebauer at concordia.ca]
> *Sent:* 13 December 2022 18:07
> *To:* John Salter <J.Salter at leeds.ac.uk>; eprints-tech at ecs.soton.ac.uk
> *Subject:* Re: permission for "manage records"
>
> Hi John,
>
> Yes, thank you, I was hoping I can do this in this way, but I don't
> see which actual permission I would need to add for the ability to
> "Manage Records"?
>
> Tomasz
>
> ------------------------------------------------------------------------
>
> *From:*John Salter <J.Salter at leeds.ac.uk>
> *Sent:* Tuesday, December 13, 2022 12:33 PM
> *To:* eprints-tech at ecs.soton.ac.uk <eprints-tech at ecs.soton.ac.uk>;
> Tomasz Neugebauer <Tomasz.Neugebauer at concordia.ca>
> *Subject:* RE: permission for "manage records"
>
> *Attention* This email originates from outside the concordia.ca
> domain. // Ce courriel provient de l'ext?rieur du domaine de concordia.ca
>
> Hi Tomasz,
>
> Not sure if this is the sort of thing you're looking for?
>
> It defines a new user type (research_office) who can look at things in
> review (the 'staff-view' and 'editor' roles), but removes certain
> abilities from those roles.
>
> If you want to apply this to one individual user, you can add the
> specific '+eprint/buffer/view:editor' privileges to their profile.
>
> The '+' allows them to do something; the '-' prevents them doing
> something.
>
> $c->{user_roles}->{'research_office'} = [qw{
>
> ??????? general
>
> ??????? edit-own-record
>
> ??????? saved-searches
>
> ??????? set-password
>
> ??????? change-email
>
> ??????? staff-view
>
> ??????? editor
>
> ??????? +eprint/buffer/view:editor
>
> +eprint/buffer/move_inbox:editor
>
> -eprint/buffer/move_archive:editor
>
> ??????? -eprint/buffer/edit:editor
>
> ??????? -eprint/buffer/remove:editor
>
> -eprint/buffer/move_dark_archive:editor
>
> -eprint/buffer/remove_with_email:editor
>
> }];
>
> Cheers,
>
> John
>
> *From:*eprints-tech-bounces at ecs.soton.ac.uk
> [mailto:eprints-tech-bounces at ecs.soton.ac.uk
> <mailto:eprints-tech-bounces at ecs.soton.ac.uk>] *On Behalf Of *Tomasz
> Neugebauer via Eprints-tech
> *Sent:* 13 December 2022 17:05
> *To:* eprints-tech at ecs.soton.ac.uk
> *Subject:* [EP-tech] permission for "manage records"
>
> *CAUTION:*This e-mail originated outside the University of Southampton.
>
> Is there a specific permission I could add to a user account so that
> they can view records through the "Manage Records" interface?? Is
> there a way to give this permission without giving them full
> administrator access?
>
> Tomasz
>
>
> *** Options:http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C84b5a7becdc147eae68208dadd703af9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638065771409467910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BQzegSt5bPmmBAi1A4KdOOHOYF2axafLvKiChqehrc8%3D&reserved=0
> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C84b5a7becdc147eae68208dadd703af9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638065771409467910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bzJEU1t0mXQs8KAY1jgFMr2M6pkmyrjWA5h2QhkRx%2Bw%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20221214/927eadf9/attachment-0001.html