[Git][noosfero/noosfero][master] 2 commits: Permission fix

Rodrigo Souto gitlab at mg.gitlab.com
Thu Jul 6 16:21:06 BRT 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
5982b02d by antoniocoj at 2017-07-06T19:20:42+00:00
Permission fix

- - - - -
a34ddd85 by Rodrigo Souto at 2017-07-06T19:20:44+00:00
Merge branch 'permission-fix' into 'master'

Permission fix

See merge request !1265
- - - - -


1 changed file:

- app/controllers/my_profile/cms_controller.rb


Changes:

=====================================
app/controllers/my_profile/cms_controller.rb
=====================================
--- a/app/controllers/my_profile/cms_controller.rb
+++ b/app/controllers/my_profile/cms_controller.rb
@@ -12,7 +12,8 @@ class CmsController < MyProfileController
       if yield(c, user, profile)
         true
       else
-        render_access_denied(c)
+        access_denied = _("You do not have access to ")
+        render_access_denied("#{access_denied}#{c.request.path_info}")
         false
       end
     end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/f43d2a8878f8d4bd98e5f302c60d0fa633ca9892...a34ddd85bef86a91ac6d9862e923643de9ff95cf

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/f43d2a8878f8d4bd98e5f302c60d0fa633ca9892...a34ddd85bef86a91ac6d9862e923643de9ff95cf
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/20170706/97f6337a/attachment-0001.html>


More information about the Noosfero-dev mailing list