fix: removing tables from EDIT menu that are in xlmaps
Build / Build-and-ng-test (pull_request) Failing after 13s Details

This commit is contained in:
zmaj 2024-01-19 11:12:31 +00:00
parent 2d6e747db9
commit 9550ae4d11
1 changed files with 7 additions and 4 deletions

View File

@ -3,10 +3,8 @@
@brief List the libraries and tables the mp-editor user can access
@details If user is in a control group (&mpeadmins, configured in mpeinit.sas)
then they have access to all libraries / tables. Otherwise a join is made
to the &mpelib..mp_editor_access table.
to the &mpelib..mpe_security table.
This service is also callable from EUCs - just add EUCDLM= parameter.
EUCDLM values: TAB or CSV
<h4> SAS Macros </h4>
@li mf_getuser.sas
@ -133,12 +131,17 @@ proc sql;
create table work.xlmaps as
select distinct a.XLMAP_ID
,b.XLMAP_DESCRIPTION
,coalescec(b.XLMAP_TARGETLIBDS,"&mpelib..MPE_XLMAP_DATA") as XLMAP_TARGETLIBDS
,coalescec(b.XLMAP_TARGETLIBDS,"&mpelib..MPE_XLMAP_DATA")
as XLMAP_TARGETLIBDS
from &mpelib..MPE_XLMAP_RULES a
left join &mpelib..MPE_XLMAP_INFO(where=(&dc_dttmtfmt. lt tx_to)) b
on a.XLMAP_ID=b.XLMAP_ID
where &dc_dttmtfmt. lt a.tx_to;
/* we don't want the XLMAP target datasets to be directly editable */
delete from sasdatasets
where cats(libref,'.',dsn) in (select XLMAP_TARGETLIBDS from xlmaps);
%webout(OPEN)
%webout(OBJ,sasDatasets)
%webout(OBJ,saslibs)