Feature/edit metadata authorization

I assume that pds_handle contain user group name(s) and thus we don't need to add roles. To reflect this I added customized method "groups" to user model. If the assumption is incorrect I will fix it and edit roles file.

I don't understand how to use one file if I want to have 3 different users
1. who is just a GIS cataloger
2. who is just an FDA cataloger
3. who is both an FDA and a GIS cataloger
3rd case is irrelevant for my user story but I think it might be useful for
future testing

I was trying to figure it out but failed. The only solution I see here is
to analyze some additional session parameters(env variables) but I was not
sure...

Kate


On Wed, Jun 18, 2014 at 12:29 PM, barnabyalter <notifications@github.com>
wrote:

> In features/cassettes/logged_in_FDA_Cataloger.yml:
>
> > +      - Thu, 15 May 2014 18:24:52 GMT
> > +      Server:
> > +      - Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/0.9.8y mod_perl/2.0.5 Perl/v5.8.9
> > +      Transfer-Encoding:
> > +      - chunked
> > +      Content-Type:
> > +      - text/xml; charset=UTF-8
> > +    body:
> > +      encoding: US-ASCII
> > +      string: <?xml version="1.0" encoding="UTF-8"?><bor-info><id>N12345679</id><exl_id>N12345679</exl_id><nyuidn>N12345679</nyuidn><barcode>0000000000001</barcode><bor-status>51</bor-status><expiry-date>20141031</expiry-date><name>Nicolaus</name><uid>Copernicus</uid><email>copernicus@nyu.edu</email><email_address>copernicus@nyu.edu</email_address><institute>NYU</institute><cn>Nicolaus
> > +        Copernicus</cn><givenname>Nicolaus</givenname><sn>Copernicus</sn><verification>6bxxxxxxxxxxxxxx</verification><opensso>true</opensso><nyu_shibboleth>true</nyu_shibboleth><entitlements>urn:mace:nyu.edu:entl:its:wikispriv;urn:mace:nyu.edu:entl:its:classes;urn:mace:nyu.edu:entl:its:qualtrics;urn:mace:nyu.edu:entl:lib:eresources;urn:mace:nyu.edu:entl:its:wikispub;urn:mace:nyu.edu:entl:its:lynda;urn:mace:nyu.edu:entl:lib:ideaexchange;urn:mace:nyu.edu:entl:its:files;urn:mace:incommon:entitlement:common:1</entitlements><edupersonentitlement><value>urn:mace:nyu.edu:entl:its:wikispriv</value><value>urn:mace:nyu.edu:entl:its:classes</value><value>urn:mace:nyu.edu:entl:its:qualtrics</value><value>urn:mace:nyu.edu:entl:lib:eresources</value><value>urn:mace:nyu.edu:entl:its:wikispub</value><value>urn:mace:nyu.edu:entl:its:lynda
>  </val
>  ue><value>urn:mace:nyu.edu:entl:lib:ideaexchange</value><value>urn:mace:nyu.edu:entl:its:files</value><value>urn:mace:incommon:entitlement:common:1</value></edupersonentitlement><ill-permission>Y</ill-permission><college_name>LI</college_name><dept_code>NYU
> > +        Division of Libraries</dept_code><dept_name>01</dept_name><major_code>DIVISION
> > +        OF LIBRARIES</major_code><major>31300</major></bor-info>
> > +    http_version:
> > +  recorded_at: Thu, 15 May 2014 18:24:52 GMT
> > +recorded_with: VCR 2.8.0
>
> @ekate <https://github.com/ekate> Could you explain why you chose to use
> different files here instead of the existing logged_in_users.yml which
> contains similar data?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/NYULibraries/ichabod/pull/30/files#r13924860>.
>



-- 
Ekaterina Pechekhonova
Digital Library Programmer/Analyst
New York University
Libraries
email: ekate@nyu.edu
phone: 212-992-9993