Updated table node to use status (1:not_published, 2:published, 3:trash )instead of deleted_at to implement soft deletes.
Updated queries to use the new status field. Updated CMS_NODE with a new status attribute.
This commit is contained in:
@@ -49,8 +49,7 @@ feature -- Status report
|
||||
if is_admin_user (a_user) then
|
||||
Result := True
|
||||
else
|
||||
fixme ("Check how to handle this predefined role")
|
||||
-- Result := user_role_has_permission (authenticated_user_role, a_permission)
|
||||
Result := user_role_has_permission (authenticated_user_role, a_permission)
|
||||
if not Result then
|
||||
Result := across user_roles (a_user) as ic some user_role_has_permission (ic.item, a_permission) end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user