baseauthmodel

master
Mustafa Yontar 4 years ago
parent 97fb36d498
commit 040adf8aed
  1. 23
      BaseAuthModel.py

@ -0,0 +1,23 @@
class BaseAuth(object):
error = None
def set_error(self, error):
self.error = error
def get_error(self):
return self.error
def authorized(self):
return True
def has_model_read_permission(self, qs):
return True, qs
def has_model_write_permission(self, obj):
return True, obj
def has_model_update_permission(self, obj, update):
return True, obj
def has_model_delete_permission(self, obj, model):
return True, obj
Loading…
Cancel
Save