permissions
Module that provides a base Permission class. This class may be overridden by changing the PERMISSION_CLASS value in the settings module.
-
class fiber.permissions.Permissions[source]
This class defines the methods that a Permission class should implement.
By default all permissions are granted to a staff user.
-
can_edit(user, obj)[source]
Should return True if user is allowed to edit obj.
-
can_move_page(user, page)[source]
Should return True if user is allowed to move page.
-
filter_files(user, qs)[source]
Called by API while listing files.
-
filter_images(user, qs)[source]
Called by API while listing images.
-
filter_objects(user, qs)[source]
Should only return those objects whose user is allowed to edit.
qs can consist of type Page or ContentItem.
-
object_created(user, obj)[source]
Called whenever a new instance has been created of one of Fiber’s models by user.