Ticket T852850
Visible to All Users

What am I doing wrong when apply the following security criteria

created 5 years ago (modified 5 years ago)

[DevExpress Support Team: CLONED FROM T468768: Is there a way to pull in the current user into a security criteria expression.]

what i am doing wrong when apply following criteria in security criteria

[Created By.Permission Policy User.Oid] = [<SecurityUser>][[Oid] = CurrentUserId()]

Answers approved by DevExpress Support

created 5 years ago

In your criteria, you compare a key value (Oid) with a Boolean value (the Exists aggregate of a Free Join operator). Use the following criterion instead.

Code
[CreatedBy.Oid] = CurrentUserId()

If this doesn't help, send us the source code of your business classes and describe what you want to filter and how.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.