Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Admin Validation
Carlos__del_Costillo_(LatAurAdmin_(Delete)_2030086
I want to make a new func=myfunc.something I want to validate that Admin is the only onw that can acces this function. Do you know how to do this?Thank you very much.
Find more posts tagged with
Comments
Paul_Eddie_(PEddie_(Delete)_801545)
I am assuming that you are using livelink 8.x.x.You orphan the object called 'AdminLLRequestHandler' in the webadmin ospace into your ospace. Once you have it, change the feature .fFuncPrefix to your liking.Then make a child under this orphan, and call it 'myfunc' and make your changes as necessary.Run your usual 'BuildOspace' in your globals object, and your 'SetRequestHandler' in your handlergroup object.This will make a requesthandler that only Admin can use.Cheers,Paul
Paul_Eddie_(PEddie_(Delete)_801545)
You can also cheat a bit. This is one way:Make your requesthandler the normal way and in the .execute feature, check to see if the userid is 1000. Admin is always 1000.Here is another:Make your requesthandler the normal way and in the .executewithlogin script, you add a few lines after this line: Assoc loginInfo = .GetLoginInfo( r )//Add the following lines:if loginInfo.OK and logininfo.User<>'Admin' loginInfo.OK=falseend//end adding linesCheers,Paul
Carlos__del_Costillo_(LatAurAdmin_(Delete)_2030086
Thank you very much, sorry for not answering but I was out of the office, I'll keep in touch posting my news...Thanks.