Mercurial > p > roundup > code
diff templates/minimal/html/page.html @ 1866:743f76c7deab
Hide registration link if the user doesn't have 'Web Registration' permission.
(patch [SF#828141]).
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Sat, 25 Oct 2003 10:59:50 +0000 |
| parents | fad32dafc174 |
| children | f5c804379c85 |
line wrap: on
line diff
--- a/templates/minimal/html/page.html Fri Oct 24 22:52:48 2003 +0000 +++ b/templates/minimal/html/page.html Sat Oct 25 10:59:50 2003 +0000 @@ -30,7 +30,8 @@ <input type="submit" name=":action" value="login"> <span tal:replace="structure request/indexargs_form" /> </form> - <a href="user?:template=register">Register</a> + <a tal:condition="python:request.user.hasPermission('Web Registration')" + href="user?:template=register">Register</a> </p> <p class="userblock" tal:condition="python:request.user.username != 'anonymous'">
