i am trying to Filter by CurrentUserLevel in Recordset Selecting event for some user levels.
i want to filter for all levels except two userlevel which in the below code i specified, the problem is it works for the administrator(-1) level but for others not working?!
if (CurrentUserLevel()!= "3" && CurrentUserLevel() != "-1") {
ew_AddFilter($filter, "RequestPer = ".CurrentUserID().""); }
}
above will bypass the filter for level -1 but not for level 3
if i do it alone
if (CurrentUserLevel()!= "3" ) {
ew_AddFilter($filter, "RequestPer = ".CurrentUserID().""); }
}
and userlevel is 3 still the filter is done.
can anyone help with this?