nextcloud / groupquota

Allow setting disk quota for an entire group
https://apps.nextcloud.com/apps/groupquota
GNU Affero General Public License v3.0
28 stars 7 forks source link

Setting a quota of 0 is not supported #16

Open jogo81 opened 3 years ago

jogo81 commented 3 years ago

When I set the quota for a group to 0 I get an error Malformed quota input. In Nextcloud I can set a quota of 0 for a user to inhibit him creating "own" files and directories. I need to create groups which can only upload into shared folders. Setting the quota to 1 Byte is not sufficient.

I'll look into fixing it myself and submitting a pull request, but I'm not sure if I have enough time soon.

joshtrichards commented 2 months ago

I'll look into fixing it myself and submitting a pull request, but I'm not sure if I have enough time soon.

If you want to make an attempt, the changes can likely be copied basically from this PR in the group_default_quota app: icewind1991/group_default_quota#8

It'd go around here:

https://github.com/nextcloud/groupquota/blob/cca9a0de8feb5a748c21d64266462d2b2a2de40e/lib/Command/SetQuota.php#L60-L74

Cc: @jsox79 since you seemed interested in this feature too.