Add CLI task to promote users to administrators
|Assignee:||Jesús García Crespo||% Done:|
|Category:||Access Control||Estimated time:||1.00 hour|
|Target version:||Release 2.2.0|
|Google Code Legacy ID:||Tested version:||2.2|
$ php symfony tools:promote-user-to-admin user1
If the user doesn't exist you'll see the following error:
If the user is already an administrator:
The given user is already an administrator.
If the operation succeeds:
The user user1 is now an administrator.
#4 Updated by Dan Gillean about 7 years ago
- Status changed from QA/Review to Feedback
- Assignee changed from Dan Gillean to Jesús García Crespo
- Tested version 2.2 added
Worked - but I had to clear symfony's cache before it did. Is this expected? Should it be part of the documentation for using this task?
#5 Updated by Dan Gillean about 7 years ago
Sevein: I did the documentation, but I haven't added clearing the app cache yet. Should I? Is this an expected behavior, or will you try to fix this?