Xaf Tip # 7 Dangerous Switch

Έχουν δημοσιευτεί 24 Σεπτεμβρίου 09 03:09 πμ | tolisss 
My good friend Martin Praxmarer while we are working on some cool feature for the new ModelDifference eXpand module pointed out the existence of an evil switch Suppose your team is responsible for creating a module with some kind of Permission so when the system is granted that permission a block of code will be executed, something like if (SecuritySystem.IsGranted( new MyPermission())){     //do something } and then you pass your module to another team or another consumer and he decides to use the “EVIL ONE” property that is exposed by DevExpress.ExpressApp.Security.SecurityBase class is name IsGrantedForNonExistentPermission and can be changed easily as shown in the next image What it does? As its name states inverse the behavior of the SecuritySystem.IsGranted

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: , ,

Σχόλια:

Χωρίς Σχόλια
Έχει απενεργοποιηθεί η προσθήκη σχολίων από ανώνυμα μέλη

Search

Go

Το Ιστολόγιο

Ιστορικό Δημοσιεύσεων

Συνδρομές