Adding helper to show or hide elements based on permissions. #1138

This commit is contained in:
Eric Davis committed 2008-06-04 15:44:44 -07:00
1 parent 23c6ee6e92
commit 203ad5c90e
5 files changed
+34 -7

No files matched your search

+4
View File
@@ -15,4 +15,8 @@ module DeliverablesHelper
content_tag(:span, label) +
h(data))
end
def allowed_management?
return User.current.allowed_to?(:manage_budget, @project)
end
end