| Author |
Message |
|
PeterPain
|
Post subject: access rights Posted: Tue Nov 09, 2010 6:25 am |
|
Joined: Tue Nov 09, 2010 5:29 am Posts: 12 Location: Russia
|
|
Hi. Where PhreeBooks stores the access rights of users? I need to separate an access to invoice preview between employes. How to?
|
|
 |
|
 |
|
PeterPain
|
Post subject: Re: access rights Posted: Wed Nov 10, 2010 5:28 am |
|
Joined: Tue Nov 09, 2010 5:29 am Posts: 12 Location: Russia
|
|
Figured. Just got the value of variable "$admin_id" from "$_SESSION" array and then looked up for "$security_level". Thats enough.
|
|
 |
|
 |
|
dave
|
Post subject: Re: access rights Posted: Wed Nov 10, 2010 5:18 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3498 Location: Colorado, US
|
|
Instead of modifying the code, go to Setup -> Users -> Edit the username and set the access rights. Once they log out and back in, the changes will be in effect.
Dave
|
|
 |
|
 |
|
PeterPain
|
Post subject: Re: access rights Posted: Wed Nov 24, 2010 5:24 am |
|
Joined: Tue Nov 09, 2010 5:29 am Posts: 12 Location: Russia
|
|
I mean where in database... And by the way, this is very inconvenient to logout and to log in after rights was changed. Usually users are keeping the browser open and session is remains. When administrator changes rights, user may don't know about it and get wrong effect, because not relogged.
|
|
 |
|
 |
|
dave
|
Post subject: Re: access rights Posted: Thu Nov 25, 2010 10:14 am |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3498 Location: Colorado, US
|
|
Table users, encoded in the field security.
Dave
|
|
 |
|
 |
|
PROpheT
|
Post subject: Re: access rights Posted: Fri Feb 25, 2011 5:34 am |
|
Joined: Mon Feb 14, 2011 2:02 am Posts: 80 Location: Slovakia
|
|
Hi, what is the simplest way to hide/disable items on forms for each users (not only hide entire modul sections)?
|
|
 |
|
 |
|
dave
|
Post subject: Re: access rights Posted: Fri Feb 25, 2011 6:13 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3498 Location: Colorado, US
|
|
Some items (mostly buttons) are removed when permissions are set. If you want part of the form removed, you will need to modify the core template or create a custom template with the fields left off.
Dave
|
|
 |
|
 |
|