noosfero | Add environment permission to not allow user to delete a profile (#648)
Daniela Feitosa
gitlab at gitlab.com
Fri Aug 7 08:34:17 BRT 2015
New comment for Merge Request 648
https://gitlab.com/noosfero/noosfero/merge_requests/648#note_1843672
Daniela Feitosa
You can replace this `if:elsif` block by this:
```
<% if !environment.enabled?('forbid_destroy_profile') || user.is_admin?(environment) %>
<%= button(:remove, _('Delete profile'), {:action => :destroy_profile}) %>
<% end %>
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150807/c5a93f30/attachment.html>
More information about the Noosfero-dev
mailing list