Hi,
I have created a function that I have applied as a row filter function to multiple tables.
The function takes one input parameter (a column value from the table). It then uses session_user() to look up a user in our users table. If the user is found, we look at the users access rights which is specified in the users table. That value is compared to the input parameter to return true or false if the user can see or not see this row.
This does not work now, but I am certain that I had it working before. Why does it not work? This is the function:
EXISTS (
SELECT 1
FROM {table} AS users
WHERE user_name = session_user()
AND (
users.{id col} = {param}
OR users.{id col} IS NULL
OR users.{id col} = ''
)
)
thanks in adavance!