WebTales / rubedo-backoffice-ui

Other
8 stars 4 forks source link

Update ACLController.js #10

Closed ayurmedia closed 10 years ago

ayurmedia commented 10 years ago

Longer delay until showing top menu-bar fixes slow initialization. Problem is that MyPrefData.simpleMode will be set too late dynamically while loading user-profile. the trigger task.delay(300) can be executed before profile is ready. Setting delay to 2000 is a workaround for me.

Alexandru-Dobre commented 10 years ago

Looks like a good workaround. Thanks for the help ! The real source of the problem is the fact that current user data and current user rights are not recovered at the same time. Fixing this would eliminate the need for delays and store syncs. Given the nosql architecture it should be fairly easy to merge personal prefs into user collection and resolve rights upon current user read. I'll be sure to include this on the fix list for the future release.It should make the backoffice-ui code much simpler and cleaner.