migrate hosting-assets into external db #158
@ -28,7 +28,6 @@ select (objectTable || '#' || objectIdName || ':' || roleType) as roleIdName, *
|
|||||||
Creates a view to the role table with row-level limitation
|
Creates a view to the role table with row-level limitation
|
||||||
based on the grants of the current user or assumed roles.
|
based on the grants of the current user or assumed roles.
|
||||||
*/
|
*/
|
||||||
drop view if exists rbac.role_rv;
|
|
||||||
create or replace view rbac.role_rv as
|
create or replace view rbac.role_rv as
|
||||||
select *
|
select *
|
||||||
-- @formatter:off
|
-- @formatter:off
|
||||||
@ -228,7 +227,6 @@ select distinct *
|
|||||||
Creates a view to the users table with row-level limitation
|
Creates a view to the users table with row-level limitation
|
||||||
based on the grants of the current user or assumed roles.
|
based on the grants of the current user or assumed roles.
|
||||||
*/
|
*/
|
||||||
drop view if exists rbac.subject_rv;
|
|
||||||
create or replace view rbac.subject_rv as
|
create or replace view rbac.subject_rv as
|
||||||
select distinct *
|
select distinct *
|
||||||
-- @formatter:off
|
-- @formatter:off
|
||||||
@ -323,7 +321,6 @@ execute function rbac.delete_subject_tf();
|
|||||||
based on the grants of the current user or assumed roles.
|
based on the grants of the current user or assumed roles.
|
||||||
*/
|
*/
|
||||||
-- @formatter:off
|
-- @formatter:off
|
||||||
drop view if exists rbac.own_granted_permissions_rv;
|
|
||||||
create or replace view rbac.own_granted_permissions_rv as
|
create or replace view rbac.own_granted_permissions_rv as
|
||||||
select r.uuid as roleuuid, p.uuid as permissionUuid,
|
select r.uuid as roleuuid, p.uuid as permissionUuid,
|
||||||
(r.objecttable || ':' || r.objectidname || ':' || r.roletype) as roleName, p.op,
|
(r.objecttable || ':' || r.objectidname || ':' || r.roletype) as roleName, p.op,
|
||||||
|
@ -81,7 +81,6 @@ $$;
|
|||||||
/*
|
/*
|
||||||
Creates a view to the rbac.global object table which maps the identifying name to the objectUuid.
|
Creates a view to the rbac.global object table which maps the identifying name to the objectUuid.
|
||||||
*/
|
*/
|
||||||
drop view if exists rbac.global_iv;
|
|
||||||
create or replace view rbac.global_iv as
|
create or replace view rbac.global_iv as
|
||||||
select target.uuid, target.name as idName
|
select target.uuid, target.name as idName
|
||||||
from rbac.global as target;
|
from rbac.global as target;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user