Skip to content
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

Add support for drush role-add-perm (rap) #172

Open
jackaponte opened this issue Jun 18, 2019 · 2 comments
Open

Add support for drush role-add-perm (rap) #172

jackaponte opened this issue Jun 18, 2019 · 2 comments

Comments

@jackaponte
Copy link
Member

This is another Drush command that would be very handy for my shop's Backdrop development; I imagine it would come in handy for others doing similar work as well.

@jackaponte
Copy link
Member Author

Working on this on https://github.com/jackaponte/drush/tree/role-add-perm. I've got to a point where I think things are working right until I hit this error:

drush rap 'anonymous' 'post comments'                  
Error: Call to undefined method stdClass::getAllModulePerms() in backdrop_command_role_perm() (line 229 of /opt/drush/8/drush/drush/commands/backdrop/commands/core/backdrop_role.drush.inc).
Drush command terminated abnormally due to an unrecoverable error.                 

The function @getAllModulePerms@ is in @/opt/drush/8/drush/drush/lib/Drush/Role/RoleBase.php@ which is a whole file of Drupal 6, 7 and 8 stuff that looks important to all of these Drush role commands, but I'm not sure how or where to duplicate that file for Backdrop.

@jackaponte
Copy link
Member Author

Adding the "help wanted" label here because I'm feeling quite stuck! I might return to this a bit later but will unassign myself from the task should it feel beyond me when I do.

@serundeputy serundeputy added this to the 1.3.0 milestone Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants