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:
jvelilla
2015-05-11 16:38:51 -03:00
parent c2d0fbf445
commit e767e1bc47
5 changed files with 83 additions and 12 deletions

View File

@@ -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