New submission from Gustavo Narea <m...@gustavonarea.net>:

repoze.what-pylons must provide a function that receives the path to a 
controller and returns a
boolean depending on whether the user is allowed to visit that controller 
(evaluating the
controller-wide predicates (if any) and the predicate specific to the action 
via the @require
decorator). Example with Genshi: 
  <a py:if="can_access('/admin/')" href="/admin/">
      This is a link for admins
  </a>

 The can_access() function above represents the function in question.

----------
assignedto: Gustavo
messages: 143
nosy: Gustavo
priority: feature
status: in-progress
title: Create a function that checks if the user is allowed to visit a given URL
topic: repoze.what

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue61>
__________________________________
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to