How to Limit User Access to own Record

From ADempiere
Revision as of 09:48, 29 April 2007 by Usman88 (Talk)

Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

This little tips is useful when we want to limit user access/change to his own profile.

The idea is make clone of User Window and add tiny where clause to it.

Ok, here is the steps :

1. Login as SuperUser and choose System Administration Role.

2. Go to Window, Tab & Field.

3. Create New Window, Name it : My Profile

File:MyProfile Window.jpg

4. Click on Copy Windows Tab to clone tabs from User Window

5. Go to Tab and excluding some tabs using delete button and keep following tabs :

  User Contact, User Subtitute, User Mail, Queries, LDAP Access

File:MyProfile tab.jpg

6. Still in Tab, Zoom user Contact Record and scroll down until you find Sql WHERE box, then type in :

   AD_User_ID=@#AD_User_ID@

File:MyProfile where.jpg

7. Save it, and we're done this new window u can safely close it.

8. Next Link My Profile Window into Menu, Click on "Menu"

9. Add a New Record, name it My Profile

10. Select Action as "Window" and fill the window box select "My Profile".

File:MyProfile menu.jpg

11. Save it and voila it's done.

Above tips is base on Teo Sarca post : https://sourceforge.net/forum/message.php?msg_id=4286510

My personal thanks to Teo Sarca.

Usman.