Register    Login    Forum    Search    FAQ

Board index » Misc. » Helpers and Customization




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: access rights
 Post Posted: Tue Nov 09, 2010 6:25 am 
Offline

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?


Top 
 Profile  
 
 Post subject: Re: access rights
 Post Posted: Wed Nov 10, 2010 5:28 am 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: access rights
 Post Posted: Wed Nov 10, 2010 5:18 pm 
Offline

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


Top 
 Profile  
 
 Post subject: Re: access rights
 Post Posted: Wed Nov 24, 2010 5:24 am 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: access rights
 Post Posted: Thu Nov 25, 2010 10:14 am 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3498
Location: Colorado, US
Table users, encoded in the field security.

Dave


Top 
 Profile  
 
 Post subject: Re: access rights
 Post Posted: Fri Feb 25, 2011 5:34 am 
Offline

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)?


Top 
 Profile  
 
 Post subject: Re: access rights
 Post Posted: Fri Feb 25, 2011 6:13 pm 
Offline

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


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 7 posts ] 

Board index » Misc. » Helpers and Customization


Who is online

Users browsing this forum: No registered users and 0 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron