mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
23 lines
402 B
Python
23 lines
402 B
Python
|
|
from django.urls import path
|
||
|
|
|
||
|
|
|
||
|
|
class WorkspaceStore:
|
||
|
|
def update_role(self, workspace_id, role):
|
||
|
|
return None
|
||
|
|
|
||
|
|
|
||
|
|
workspace_store = WorkspaceStore()
|
||
|
|
|
||
|
|
|
||
|
|
def update_workspace_role(request):
|
||
|
|
workspace_store.update_role(
|
||
|
|
request.session["workspace_id"],
|
||
|
|
request.POST["role"],
|
||
|
|
)
|
||
|
|
return None
|
||
|
|
|
||
|
|
|
||
|
|
urlpatterns = [
|
||
|
|
path("workspaces/current/role/", update_workspace_role),
|
||
|
|
]
|