Feature #7335

Add CLI task to promote users to administrators

Added by Jesús García Crespo over 7 years ago. Updated about 7 years ago.

Status:VerifiedStart date:10/02/2014
Priority:LowDue date:
Assignee:Jesús García Crespo% Done:

0%

Category:Access ControlEstimated time:1.00 hour
Target version:Release 2.2.0
Google Code Legacy ID: Tested version:2.2
Sponsored:No Requires documentation:

Description

Syntax:

$ php symfony tools:promote-user-to-admin user1

If the user doesn't exist you'll see the following error:

Unknown user.

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.

History

#1 Updated by Jesús García Crespo over 7 years ago

  • Tracker changed from Bug to Feature

#2 Updated by Jesús García Crespo over 7 years ago

  • Status changed from New to QA/Review
  • Assignee changed from Jesús García Crespo to Dan Gillean
  • Estimated time changed from 0.50 to 1.00

#3 Updated by Dan Gillean over 7 years ago

  • Requires documentation set to Yes

Documentation should be added to the Command-line tools page in the Admin manual for 2.2

#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?

#6 Updated by Dan Gillean about 7 years ago

  • Status changed from Feedback to Verified
  • Requires documentation deleted (Yes)

Don't know what happened last time. Checked w Jesus, and re-tested. Clearing cache not necessary. Docs are done.

Also available in: Atom PDF