mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-23 09:08:39 +02:00
fix(accounts): unable to share some accounts; wrong url getting used
This commit is contained in:
@@ -51,7 +51,7 @@ urlpatterns = [
|
|||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"account-groups/<int:pk>/share/",
|
"account-groups/<int:pk>/share/",
|
||||||
views.account_share,
|
views.account_group_share,
|
||||||
name="account_group_share_settings",
|
name="account_group_share_settings",
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ def account_group_take_ownership(request, pk):
|
|||||||
@only_htmx
|
@only_htmx
|
||||||
@login_required
|
@login_required
|
||||||
@require_http_methods(["GET", "POST"])
|
@require_http_methods(["GET", "POST"])
|
||||||
def account_share(request, pk):
|
def account_group_share(request, pk):
|
||||||
obj = get_object_or_404(AccountGroup, id=pk)
|
obj = get_object_or_404(AccountGroup, id=pk)
|
||||||
|
|
||||||
if obj.owner and obj.owner != request.user:
|
if obj.owner and obj.owner != request.user:
|
||||||
|
|||||||
Reference in New Issue
Block a user