vincent-peugnet / antilope

Antilope private tracker for IRL sharing, allowing members to share anything inside communities.
https://antilope-alpha.club1.fr/
GNU Affero General Public License v3.0
9 stars 2 forks source link

user class can require an amount of managed sharables #89

Closed vincent-peugnet closed 3 years ago

vincent-peugnet commented 3 years ago

A new requirement for user Class could be the actual number of non-disabled managed sharables.

vincent-peugnet commented 3 years ago

To do this, we could use the listener system. create a new event when a new manager is at work. But ! we should also take care of disabled sharables. So this need also a disabled/enabled sharable event. As sharables are created disabled by default, there is no use of checking at sharable creation

Check for userClass up or down when: