Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions EditReceipt.ascx.vb
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,9 @@ Namespace Ventrian.SubscriptionTools
End If

' Safely handle role logic
Dim objRoleController As New RoleController
Dim objUserRole As UserRoleInfo = Nothing
Try
objUserRole = objRoleController.GetUserRole(objReceipt.PortalID, objReceipt.UserID, objPlan.RoleID)
objUserRole = RoleController.Instance.GetUserRole(objReceipt.PortalID, objReceipt.UserID, objPlan.RoleID)
Catch ex As Exception
' Role lookup failed, continue without role
objUserRole = Nothing
Expand Down Expand Up @@ -395,7 +394,7 @@ Namespace Ventrian.SubscriptionTools
If (chkAddToRole.Checked) Then
Try
' Add the user to the role (DNN will handle duplicates gracefully)
objRoleController.AddUserRole(objReceipt.PortalID, objReceipt.UserID, objPlan.RoleID, objReceipt.DateStart, objReceipt.DateEnd)
RoleController.Instance.AddUserRole(objReceipt.PortalID, objReceipt.UserID, objPlan.RoleID, RoleStatus.Approved, False, objReceipt.DateStart, objReceipt.DateEnd)
Catch ex As Exception
' Role assignment failed, but receipt was created
' Log the error for debugging
Expand Down
Binary file removed Libraries/DotNetNuke.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion My Project/Settings.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading