+ def can_write
+ if respond_to?(:frozen_by_uuid) && frozen_by_uuid
+ return false
+ else
+ return owner_uuid == current_user.uuid ||
+ current_user.is_admin ||
+ current_user.can?(write: uuid)
+ end
+ end
+
+ def can_manage
+ return owner_uuid == current_user.uuid ||
+ current_user.is_admin ||
+ current_user.can?(manage: uuid)
+ end
+