Improving setPermissions mechanism
Adding test setPermissions for non admin user
Merge pull request #15 from jvelasques/setPermissionsImprove

#3243 - Improving setPermissions mechanism