File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77<Method name =" SetConfig" >
88<ClassMethod >1</ClassMethod >
9- <FormalSpec >App:%String,Config:%String</FormalSpec >
9+ <FormalSpec >App:%String,Config:%String,User:%String=$Username </FormalSpec >
1010<ReturnType >%Status</ReturnType >
1111<Implementation ><![CDATA[
1212 set ns = $Namespace
1313 zn "%SYS"
1414 set Properties("Attributes",App)= $lb(Config)
15- set st =##class(Security.Users).Modify($Username ,.Properties)
15+ set st =##class(Security.Users).Modify(User ,.Properties)
1616 zn ns
1717 return st
1818]]> </Implementation >
1919</Method >
2020
2121<Method name =" GetConfig" >
2222<ClassMethod >1</ClassMethod >
23- <FormalSpec >App:%String</FormalSpec >
23+ <FormalSpec >App:%String,User:%String=$Username </FormalSpec >
2424<ReturnType >%String</ReturnType >
2525<Implementation ><![CDATA[
2626 set ns = $Namespace
2727 zn "%SYS"
28- set st =##class(Security.Users).Get($Username ,.Properties)
28+ set st =##class(Security.Users).Get(User ,.Properties)
2929 zn ns
3030 return $lg(Properties("Attributes",App))
3131]]> </Implementation >
You can’t perform that action at this time.
0 commit comments