noosfero | Permission fix (!1265)

Rodrigo Souto gitlab at mg.gitlab.com
Tue Jul 4 15:59:59 BRT 2017


Rodrigo Souto started a new discussion on app/controllers/my_profile/cms_controller.rb:

>        if yield(c, user, profile)
>          true
>        else
> -        render_access_denied(c)
> +        render_access_denied("You do not have access to #{c.request.path_info}")

Strings that go to the end user should be enclosured in `_()` to ensure translation.

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1265#note_34182483
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170704/7f6f9aee/attachment.html>


More information about the Noosfero-dev mailing list