biigle / user-disks

:m: BIIGLE module to offer private storage disks for users
GNU General Public License v3.0
0 stars 0 forks source link

Fix disk unique name constraint #5

Closed mzur closed 4 months ago

mzur commented 10 months ago

Currently, storage disk names must be unique. This does not really make sense, as they should rather be unique per user. So change the constraint accordingly (i.e. disks of the same user must have unique names but different users can use the same names).

In addition, add validation logic for this. Currently, not even the unique constraint is handled there which lead to a server error in production.