1) Added the condition that the permission to the project will only be checked if the subscription to be created is of project-level subscription.
2) Permission for the group and sub-group is already getting checked in the ResolveNamespaceAndProject function.
Ticket Link
Fixes #517
Testing Steps
1) Create a group, sub-group, and project subscriptions.
Summary
1) Added the condition that the permission to the project will only be checked if the subscription to be created is of project-level subscription. 2) Permission for the group and sub-group is already getting checked in the ResolveNamespaceAndProject function.
Ticket Link
Fixes #517
Testing Steps
1) Create a group, sub-group, and project subscriptions.