Open josejachuf opened 2 years ago
Taking into account the UUID type PK support. How is it resolved in auth_permission record_id (integer) field?
Sample of docs:
maintenance = db.Preference(name='maintenance').first() auth.add_permission(admins, 'write', 'Preference', maintenance.id) auth.has_permission('write', 'Preference', maintenance.id)
If Preference.id is uuid, this would not work.
Jose
@josejachuf you right, I didn't take into account permissions.
This sounds a bit complex, I need to spend some time on this in order to find a backward compatible way of supporting this. Ideally will be in 2.5
Taking into account the UUID type PK support. How is it resolved in auth_permission record_id (integer) field?
Sample of docs:
If Preference.id is uuid, this would not work.
Jose