-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to get a role's permission? #40
Comments
@kentr In D7, DrupalGap hooks into the System Connect call, and appends information like this to the JSON results so the app can determine things about the users/roles/permissions. I chose to leave this out of jDrupal as it felt (and is) very heavy. In D8, there is What do you think? |
FWIW, I think this issue is related: https://www.drupal.org/node/2631774 Although it is for comments, I'm hoping that someday D8 REST will just let us |
I understand about wanting to keep the code light. A separate module sounds workable. It probably is related to that d.o issue. I think it would be helpful if the Drupal (server-side) module is bundled with jDrupal, and would also be helpful to have a note in the jDrupal docs that some fields are protected and either need to be stripped from the entity before a |
+1 to the server side module being bundled with jDrupal as a sub module |
I realize now that you were suggesting bundling them in you earlier comment... |
Yup, no problem. Then the npm portion(s) could each be separate packages. |
Thinking about this issue, I wondered if granting Drupal's Change own username permission would allow the
name
field to be in the PATCH.That led me to thinking about a
jDrupal
feature:name
is disallowed, removename
from the User entity beforesave()
.That can handled server-side, but having the permission knowledge client-side would also allow the app to improve UX by deactivating Name fields in any UI forms.
The text was updated successfully, but these errors were encountered: