Page 1 of 1

One database sharing multiple apps

Posted: 2014-09-29 17:22
by wilmira
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

Re: One database sharing multiple apps

Posted: 2014-09-30 02:59
by udayvatturi
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.

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

Posted: 2014-10-08 20:58
by wilmira
Thank you very much Uday,

This is exactly what I was looking for. It works like charm!!

Wilfredo