in our container we are using tabs to show different datas. in order to restrict some tabs for some user not to access i am using following piece of code, but the app implies the code all tabs, so user can not see other tabs, which are allowed.
It sounds like you might be setting the hidden property on the tab itself and not on the individual views. If so, you can put the code into the view's Hidden property: