WaiveCar / Waivecar

Waivecar
https://waivecar.com
0 stars 0 forks source link

Api: Add a Waive Admin specific immobilization #1613

Open daleighan opened 4 years ago

daleighan commented 4 years ago

This needs to be added so that Waive Admins can immobilize Organization cars in a way such that Organization Admins cannot unlock them

daleighan commented 4 years ago

This will probably just consist of a flag (GroupRole) on the carl that indicates that it is waive admin immobilized. There also will need to be slight modifications to the lb interface for immobilization, and the group action function should support this.

daleighan commented 4 years ago
insert into group_roles (group_id, role_id, name, created_at, updated_at) values(4, 0, 'super-immobilized', NOW(), NOW());
daleighan commented 4 years ago

This can be done either in the bulk actions on the cars index page or on each cars show page. It is obviously only available to Waive Admins