1. #11
    Sencha User
    Join Date
    Sep 2008
    Location
    Munich
    Posts
    17
    Vote Rating
    1
    roemisch is on a distinguished road

      0  

    Default Check function permissions before enabling a button / Performance ?

    Check function permissions before enabling a button / Performance ?


    You are right. In a beginning I did not put a high priority to that, also for performance reasons. But in a near future I will probably do a permission check before showing the buttons. In that case I will disable them. But first I will check how much time it takes to check the permission for a button before disabling it.
    Thank you for the hint !

  2. #12
    Ext User
    Join Date
    Jan 2010
    Posts
    1
    Vote Rating
    0
    cpzhao is on a distinguished road

      0  

    Default


    very nice app. Any chance you are willing to share the source code?

    I am developing a project management system with a lot of structural similarities to your app. Thanks,

  3. #13
    Ext JS Premium Member
    Join Date
    Aug 2007
    Location
    Antwerp, Belgium
    Posts
    561
    Vote Rating
    44
    joeri is a jewel in the rough joeri is a jewel in the rough joeri is a jewel in the rough

      0  

    Default


    Quote Originally Posted by EXT-Phuket View Post
    Why present the user with options if they can't use them?
    I'm not saying they should be visible for this particular app, but in the app I build there are around 500 different rights that can be enabled on an account or account group level. Combine that with thousands of users, all divided into groups that require different permission levels, and it becomes very hard (on a conceptual level) to correctly manage permissions across the whole user base and give everyone the access they need. To avoid confusion, we often leave menu items visible and enabled if the user doesn't have the appropriate set of permissions for the underlying feature. The permissions error tells the user and their administrator exactly why they can't use that piece of functionality. Saves a lot on support requests.