Class SubscriptionSecurityController
This controller provides permission info about the User Subscription.
Inheritance
System.Object
SubscriptionSecurityController
Implements
Inherited Members
Namespace: DotNetNuke.Services.Social.Subscriptions
Assembly: DotNetNuke.dll
Syntax
public class SubscriptionSecurityController : ServiceLocator<ISubscriptionSecurityController, SubscriptionSecurityController>, ISubscriptionSecurityController
Methods
| Improve this Doc View SourceGetFactory()
Gets the service locator factory.
Declaration
protected override Func<ISubscriptionSecurityController> GetFactory()
Returns
Type | Description |
---|---|
Func<ISubscriptionSecurityController> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Services.Social.Subscriptions.ISubscriptionSecurityController, DotNetNuke.Services.Social.Subscriptions.SubscriptionSecurityController>.GetFactory()
|
Improve this Doc
View Source
HasPermission(Subscription)
Check if the User has permission on the Subscription based on the Subscription ModuleId and TabId.
Declaration
public bool HasPermission(Subscription subscription)
Parameters
Type | Name | Description |
---|---|---|
Subscription | subscription | Subscription. |
Returns
Type | Description |
---|---|
System.Boolean | True if user has permission, false otherwise. |