When adding roles through the UI, we should listen on the form submit and trigger the UUID sync for roles. That way users can at least create multiple roles and have UUIDs for them.

It's not ideal, but there aren't any role hooks to listen on. Short of listening for queries on the role table, we'll need stuff like this to ensure roles get UUIDs as quickly as possible.

Comments

minoroffense’s picture

Also, we should add a form alter to have an optional field to manually set the UUID.

minoroffense’s picture

Title: Add form submit callback to role edit form to trigger uuid sync » Add form submit callback and uuid field to role edit form

  • spotzero committed 0635485 on 7.x-1.x
    Issue #2311827 by minorOffense: Added uuid to roles on creation and...
spotzero’s picture

Status: Active » Fixed

Fixed.

Saving a role automatically creates a uuid for it.

I've also added uuid integration on the role forms, however it made the role ui a little terse. I've left this integration in, but I've disabled it. It can be enabled by altering the value of the constant UUID_ROLE_ADMIN_UUIDS.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.