On Sat, Nov 17, 2007 at 04:58:58PM +0530, jagdish eashwar wrote:
> Hi,
> I am in the process of writing a small catalyst application for
> handling leave applications in my office. It is my very first catalyst
> project. I have 3 roles in that application - user, section_head and
> dept_head. I want to restrict the sanctioning of leave to the
> section_head and the dept_head. For the purpose, I inserted the
> following lines in the myleave.pm file after __PACKAGE__->setup :
> 
> #Authorization::ACL Rules
> __PACKAGE__->deny_access_unless(
>       "/leave_ctl/sanction",
>       [qw/section_head dept_head/],
>       );
> It worked fine last evening, but since this morning access is being
> denied to both the section_head and dept_head. After several trials, I
> finally got it to work only when I specified just one role in the
> deny_access_unless clause. But if I specify the roles singly in two
> separate clauses, again access is denied to both the roles. What am I
> doing wrong?

Asking us instead of figuring out what changed between 'last evening' and
'this morning' :)

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to