noosfero | Ldap plugin enhancements (!1206)

João Paulo gitlab at mg.gitlab.com
Tue Jun 20 11:02:15 BRT 2017


João Paulo  commented on a discussion on plugins/ldap/controllers/ldap_plugin_myprofile_controller.rb:

> +require_relative '../lib/ldap_authentication.rb'
> +require_relative '../lib/ldap_plugin.rb'
> +
> +class LdapPluginMyprofileController < MyProfileController
> +  
> +  append_view_path File.join(File.dirname(__FILE__) + '/../views')
> +
> +  def index
> +    # return render_access_denied unless current_person.has_permission? 'edit_profile', profile

This permission check does not work. Administrator users cannot edit normal users profile for some reason. Is this the correct way to check permissions?

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1206#note_33014350
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/20170620/71f5a831/attachment.html>


More information about the Noosfero-dev mailing list