check_permission

support.check_permission(group)

Verify that the user has the necessary permissions.

Permissions can be gained by being superuser, using ‘sudo’ or by belonging to the right group.

Example::

check_permission(‘dialout’)