security - How to check permissions of an ASP.NET Role -


कैसे Ican declarative सुरक्षा का उपयोग करें ("[PrincipalPermissionAttribute (SecurityAction.Demand, Role =" ")])) लेकिन मैं नहीं

मदद के लिए धन्यवाद

मैं भूमिका की अनुमति के लिए अनुमतियों की जांच करना चाहता हूं।

यदि आप अपनी अनुमति तालिका के साथ अपनी भूमिकाओं को टाई करना चाहते हैं, तो आप शायद अपना खुद का वर्ग लिखना चाहेंगे। मैंने पढ़ा नहीं है यह लिंक, लेकिन देखें कि क्या निम्न में सभी को मदद मिलती है ...

संपादित करें: या, आप प्रत्येक उपयोगकर्ता के भीतर अनुमतियाँ मान संग्रहीत कर सकते हैं, चाहे वह डिफ़ॉल्ट में से हो प्रदाता या।


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -