Commit abf2aa9b by Őry Máté

vm: add Instance permissions to model

parent 2866b4e3
...@@ -309,7 +309,11 @@ class Instance(BaseResourceConfigModel, TimeStampedModel): ...@@ -309,7 +309,11 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
class Meta: class Meta:
ordering = ['pk', ] ordering = ['pk', ]
permissions = () permissions = (
('own_instance', _('owner')), # superuser, can delete, delegate perms
('operate_instance', _('operator')), # console, networking, change state
('use_instance', _('user')), # see all details
)
verbose_name = _('instance') verbose_name = _('instance')
verbose_name_plural = _('instances') verbose_name_plural = _('instances')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment