Closed jhauserw3241 closed 7 years ago
This is why one of the first things every foobar.delete() function should do is check self.__can_delete(session). In fact, most/all of foobar.VERB() should check self.__can_VERB(...) before doing anything.
foobar.delete()
self.__can_delete(session)
foobar.VERB()
self.__can_VERB(...)
https://github.com/pastly/cdcdb-webserver/blob/master/events.py#L414 https://github.com/pastly/cdcdb-webserver/blob/master/events.py#L172
Is there a specific module that forgot this check?
Misworded the title, will create a new issue
This is why one of the first things every
foobar.delete()
function should do is checkself.__can_delete(session)
. In fact, most/all offoobar.VERB()
should checkself.__can_VERB(...)
before doing anything.https://github.com/pastly/cdcdb-webserver/blob/master/events.py#L414
https://github.com/pastly/cdcdb-webserver/blob/master/events.py#L172
Is there a specific module that forgot this check?