Tag security insufficient security role permission feedback

Hi,

I’m having an issue with not getting a feedback to the user when a write attempt is made without sufficient permission.

The setup is a very simple. I have 2 buttons, one that sets 1 to a boolean tag and one that sets 0 to the tag. The boolean tag has its write security set so only users with Manager role can write to it.

The buttons work correctly. When a user without Manager role tries to click on the buttons, the boolean tag value doesn’t change, but there is no feedback to the user to let them know the action was denied due to security.

Thanks,
Ali

What result codes are you getting back from your call to system.tag.writeBlocking() ?

{ Hint: you’ll have to pop up a notice yourself. }

Hi,

The event script on mouse click is:

self.view.params.Start=1

The Start parameter is bound to the start tag, which has its write security set. When a user with the correct write access security presses the button, the tag value changes. If the user does not have access, nothing happens and there is no feedback to the user to let them know.

There is also a numeric entry field tied to an tag with security. When a user without write access tries to change the value, the system shows this error message:

Capture

Shouldn’t the behavior of the system be consistent among components? According to the documentation, it is preferable to set the security at the tag level rather than component level.

Thanks,
Ali