Skip to content

Commit

Permalink
Field-level permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
smcmahon committed May 13, 2011
1 parent e52bd57 commit b3eeb62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collective/dexterity_class/everything_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class IEverythingModel(form.Schema):
required=False
)

dexterity.read_permission(relatedItems='cmf.ReviewPortalContent')
dexterity.write_permission(relatedItems='cmf.ReviewPortalContent')
relatedItems = RelationList(
title=u"Related Items",
default=[],
Expand Down
2 changes: 2 additions & 0 deletions collective/dexterity_class/everything_model_templates/view.pt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

<div tal:content="context/text_line">Text Line Field Here</div>

<p>Countdown: <span tal:replace="context/getRelated"></span></p>
<p>Countdown: <span tal:replace="context/getCountDown"></span></p>
<p>Countdown: <span tal:replace="context/count_down"></span></p>

<div class="upperLine" tal:content="view/upperLine">Upper-Case Text Line Field Here</div>
Expand Down

0 comments on commit b3eeb62

Please sign in to comment.