How limits have to be handled at group limits
As commented in #210 (closed) the problem is that we are applying the same limits to the admin users. This should not be like this and I prefered closing that issue to create this one and explain better what the current behaviour problems are.
Users with admin role, when modifying a group limits, should only be restricted to this group parent category limits (if set).
There is a problem now if this admin user sets limits to it's own group, because then, when he accesses again to increase this limits, but it is already limited to max values already set before.
In general, this was thought for managers that already have limits set for it's category (that they can't modify). Then they can restrict child groups limits but never go beyond the limits an admin has set to this manager category.
But we may also think in a way that when editing limits for a group, either as admin or manager, this two things are taken into account:
- Should only apply max values of this group parent category.
- We should think what to do if he already (by mistake?) limited it's own group (this is the but hitted in the referenced issue). Personally I think it is ok to only allow modifying it by setting this group to Unlimited again.