cerb icon indicating copy to clipboard operation
cerb copied to clipboard

New worker not being added to correct role

Open nicholsk18 opened this issue 1 year ago • 1 comments

When you create a new worker, they dont seem to be added to itemized role. After the worker is created if you hit save again it seems to add them to that role.

When creating a new worker, roster updates happen before group membership is set https://github.com/jstanden/cerb/blob/10.4.7/features/cerberusweb.core/api/uri/profiles/worker.php#L190 https://github.com/jstanden/cerb/blob/10.4.7/features/cerberusweb.core/api/uri/profiles/worker.php#L269

so if your role is filtered by group they dont have any of those permission till you update that worker or role again.

Im not sure if it would break anything else, but adding worker to the group before updating roster should resolve this issue

nicholsk18 avatar Jan 30 '24 14:01 nicholsk18

Thanks for reporting the bug, @nicholsk18!

I'll get this cleaned up. :)

jstanden avatar Feb 03 '24 00:02 jstanden

Fixed in 10.4.14

jstanden avatar May 10 '24 23:05 jstanden