Dear Lanxin,

In data mercoledì 9 settembre 2015 12:03:51, Lanxin Ma ha scritto:
> I am using Invenio 1.1.1. I need to restrict a collection, which is allowed
> to search by a few users. I created a role named “acciheppictures”.  The
> firewall is “deny all”. The collection authorized for role
> ‘acciheppictures’ is ‘event1’.  The user ‘[email protected]’ is connected to
> the role.
> 
> Role details:
> 
> id      name                                       description              
>                   firewall like role definition 16  acciheppictures       
> A few users can access IHEP Pictures category.   deny all
> 
> users connected to role acciheppictures:
> id   email
> 9    [email protected]<mailto:[email protected]>
> 
> authorizations for role acciheppictures:
> id   name                 parameter
> 36  viewrestrcoll     #  collection
>                              2  event1
> 
> When I search the collection ‘event1’, it is shown
> This collection is restricted. If you are authorized to access it, please
> click on the Search button.
> 
> After I logged  in Invenio with my account, I still cannot search the
> collection.

The message: "This collection is restricted. If you are authorized to access 
it, please click on the Search button.", is always printed for restricted 
collections, I assume you have actually tried to click on "Search" without 
success?
 
> I have tried to define the firewall as “allow email
> [email protected]<mailto:[email protected]>” or “allow uid 9”, it is shown sorry,
> could not modify role because of troubles with its definition: Syntax error
> while compiling rule allow email [email protected] (line 1): not a valid rule!
> 
> Why ? what is wrong? Please help.

The email must be written within quotes, as in:

allow email "[email protected]".

Otherwise indeed it leads to syntax error.

Cheers,
        Samuele

-- 
Samuele Kaplun
INSPIRE Service Manager ** <http://inspirehep.net/>
Invenio Developer ** <http://invenio-software.org/>

Reply via email to