Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

#166 - Populate admin with users #181

Merged
merged 1 commit into from
Mar 27, 2018

Conversation

HcsOmot
Copy link
Collaborator

@HcsOmot HcsOmot commented Jan 10, 2018

In order to ease the administration of users (promoting regular users to administrators)
For system administrators
We will enable user administration in the EasyAdmin backend
Whereas currently we are promoting users to administrators using command line

Closes #166

@HcsOmot HcsOmot requested a review from msvrtan January 10, 2018 16:55
Copy link
Contributor

@msvrtan msvrtan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue ids are missing :(

Would love to see tests for this so I can be sure this works without manually testing it

*
* Flags this user as admin (adds ROLE_SUPER_ADMIN)
*/
public $administrator;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure putting this as public is a good idea, I think easy admin will skip the getters/setters

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right you are; forgot to change this while testing things out.

EasyAdmin backend can now keep track of registered users, and can
modify their roles.

Closes zgphp#166
@HcsOmot HcsOmot force-pushed the 166-populate-admin-with-users branch from b28d380 to 792e308 Compare January 10, 2018 18:41
@HcsOmot
Copy link
Collaborator Author

HcsOmot commented Jan 10, 2018

hey @msvrtan, I've removed unnecessary commits, so you can do the review more easily. Sorry about the mess.

Regarding the tests - I'm working on it. Your call if you want to merge this as is, or wait for another commit with tests.

@msvrtan msvrtan dismissed their stale review January 11, 2018 12:44

Waiting for tests

@HcsOmot
Copy link
Collaborator Author

HcsOmot commented Mar 16, 2018

damn. still no tests. we're way behind on this. i hope i'll make some progress during the next week.

@msvrtan msvrtan merged commit 86a46ac into zgphp:master Mar 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants