pydio-core icon indicating copy to clipboard operation
pydio-core copied to clipboard

Fixes for Drupal roles map and docs

Open ratatine opened this issue 8 years ago • 2 comments

These changes allow for the mapping of drupal roles to the pydio roles an update the drupal documentation with the changes in v7 (user-login-form is now user-login) as well as adding ROLES_MAP to the items and other formatting minutia.

These changes don't modify the glue code so any work being done to do the same with joomla or wordpress would be unaffected. Also I mapped the roles now via role name rather than role id which is more repeatable and easily supported.

I added one function, pydio_map_roles, which I had to do because hook_user_login() and hook_user_update() in drupal result in different $account->roles values. login will have a key/value of rid=>rname where as update will have a key/value of rid=>rid. I don't know why this is but just went ahead and resolved both arrays each time to key/value rid=>rname.

ratatine avatar Sep 12 '16 17:09 ratatine

@ratatine can you sign the CLA so that we can merge that? See pydio.com/community/contribute thx

cdujeu avatar Oct 05 '16 14:10 cdujeu

@cdujeu I had to dig to find that but I did. That link doesn't work any longer, FYI!

ratatine avatar Dec 02 '16 17:12 ratatine