Hello,
I have one database and 2 apps. as follow:
App1: invoice1, user1
App2: invoice2, user2
Right now, every user can access both apps.
Is it possible to prevent user1 to access invoice2 app. and also prevent user2 to access invoice1 app.?
Thanks in advance
Wilfredo
One database sharing multiple apps
-
- AppGini Super Hero
- Posts: 85
- Joined: 2014-06-14 03:08
- Location: India
- Contact:
Re: One database sharing multiple apps
Hi Wilfredo,
You can do that using global hooks.
http://bigprof.com/appgini/help/advance ... obal-hooks
you can write some condition there in login_ok method and return the logout url. This way you can restrict certain users to login.
You can do that using global hooks.
http://bigprof.com/appgini/help/advance ... obal-hooks
you can write some condition there in login_ok method and return the logout url. This way you can restrict certain users to login.
Code: Select all
function login_ok($memberInfo, &$args){
if($memberInfo['username']=="a")
return 'http://localhost/hms/index.php?signOut=1';
else
return "";
}
Re: One database sharing multiple apps
Thank you very much Uday,
This is exactly what I was looking for. It works like charm!!
Wilfredo
This is exactly what I was looking for. It works like charm!!
Wilfredo