diff --git a/musician/models.py b/musician/models.py index 3c86283..ffd594e 100644 --- a/musician/models.py +++ b/musician/models.py @@ -129,6 +129,10 @@ class UserAccount(OrchestraModel): return super().new_from_json(data=data, billing=billing, language=language, last_login=last_login) + def allowed_resources(self, resource): + allowed_by_type = musician_settings.ALLOWED_RESOURCES[self.type] + return allowed_by_type[resource] + class DatabaseUser(OrchestraModel): api_name = 'databaseusers' diff --git a/musician/templates/musician/mailbox_form.html b/musician/templates/musician/mailbox_form.html index bafff86..b7484bc 100644 --- a/musician/templates/musician/mailbox_form.html +++ b/musician/templates/musician/mailbox_form.html @@ -4,6 +4,15 @@ {% block content %}