kapua icon indicating copy to clipboard operation
kapua copied to clipboard

Inserted missing checks on nested entities

Open Agnul97 opened this issue 1 year ago • 1 comments

This PR inserts some missing checks of existence on nested entities. For example, in the provided commit, the delete function of AccessPermissions endpoints has been revisited in order to check if the provided accessPermission exists inside the provided accessInfo. This kind of control is in place for the find function but not for the delete one (the one modified here), so I wanted to fill the gap.

Other endpoints have this same problem and with this first commit I simply wanted to demonstrate the kind of modifications I would like to do.

Agnul97 avatar Mar 03 '23 10:03 Agnul97