Disabled user ID filter for a particular user

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Bishu
User
Posts: 429

Disabled user ID filter for a particular user

Post by Bishu »

I have a table and it is filter my the user ID Field from the Security->Advance->User ID

I want to ignore this filter for a particular ID only.
for example

IF(CurrentUserID == "1051") Ignore the user ID filter;


danielc
User
Posts: 1601

Post by danielc »

Set in UserID_Filtering server event (in Table Specific->Common):
if (your condition)
$filter = "";


Bishu
User
Posts: 429

Post by Bishu »

Thanks for the help it is working fine.

I wrote the code in the UserID_Filtering as -
if(CurrentUserLevel() == 4)$filter="";

The field name of the userID filtering is 'ID' and I made the 'ID' as extension search.
but when i login I am unable to change the 'ID' field in the extension search.


Webmaster
User
Posts: 9430

Post by Webmaster »

Note that only Administrators can access User ID field in user table, you can however create a view from the user table as lookup table.


Post Reply