Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Fixes for Drupal roles map and docs #1208

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ratatine
Copy link

@ratatine ratatine commented Sep 12, 2016

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.

@cdujeu cdujeu modified the milestones: 6.5.3, 6.5.4 => 7.0.0 Sep 21, 2016
@cdujeu
Copy link
Member

cdujeu commented Oct 5, 2016

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

@cdujeu cdujeu modified the milestones: 6.5.5 => 7.0.0, 6.5.4 Oct 5, 2016
@cdujeu cdujeu modified the milestones: 7.0.1, 6.5.5 - RC2 Oct 12, 2016
@cdujeu cdujeu modified the milestones: 7.2.X, 7.0.2 Nov 22, 2016
@ratatine
Copy link
Author

ratatine commented Dec 2, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants