========== can_create ========== .. py:method:: can_create(self) **domain**: server **language**: python **class** :doc:`AbstractItem class ` Description =========== Use the ``can_create`` method to determine whether a user of the current session have a right to create a new record. Example ======= .. code-block:: py def send_email(item, selected, subject, mess): if not item.can_create(): raise Exception('You are not allowed to send emails.') #code sending email See also ======== :doc:`Roles ` :doc:`session ` :doc:`can_view ` :doc:`can_create ` :doc:`can_edit ` :doc:`can_delete `