Ensure you can only view/edit http functions created by the currently logged in user
This commit is contained in:
@@ -30,8 +30,9 @@
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-4 align-middle [&:has([role=checkbox])]:pr-0 hidden md:table-cell" data-id="67">
|
||||
<a href="{{ url_for('execute_http_function', function=function.name) }}">{{
|
||||
url_for('execute_http_function', function=function.name) }}</a>
|
||||
<a
|
||||
href="{{ url_for('execute_http_function', user_id=function.user_id, function=function.name) }}">{{
|
||||
url_for('execute_http_function', user_id=function.user_id, function=function.name) }}</a>
|
||||
<button
|
||||
class="inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground pl-1 text-gray-600 dark:text-gray-400"
|
||||
data-id="24"><span class="sr-only" data-id="25">Add Link</span><svg
|
||||
@@ -61,7 +62,8 @@
|
||||
</button>
|
||||
<button
|
||||
class="inline-flex items-center justify-center text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-9 rounded-md px-3"
|
||||
data-id="69" hx-get="{{ url_for('client', function=function.name) }}"
|
||||
data-id="69"
|
||||
hx-get="{{ url_for('client', user_id=function.user_id, function=function.name) }}"
|
||||
hx-target="#container" hx-swap="innerHTML">
|
||||
Try
|
||||
</button>
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<a class="text-gray-300" href="{{ url_for('execute_http_function', function=name) }}">{{
|
||||
url_for('execute_http_function', function=name) }}</a>
|
||||
<a class="text-gray-300" href="{{ url_for('execute_http_function', user_id=user_id, function=name) }}">{{
|
||||
url_for('execute_http_function', user_id=user_id, function=name) }}</a>
|
||||
<button
|
||||
class="inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground px-2 text-gray-600 dark:text-gray-400"
|
||||
data-id="24"><span class="sr-only" data-id="25">Add Link</span><svg xmlns="http://www.w3.org/2000/svg"
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<a class="text-gray-300" href="{{ url_for('execute_http_function', function=name) }}">{{
|
||||
url_for('execute_http_function', function=name) }}</a>
|
||||
<a class="text-gray-300" href="{{ url_for('execute_http_function', user_id=user_id, function=name) }}">{{
|
||||
url_for('execute_http_function', user_id=user_id, function=name) }}</a>
|
||||
<button
|
||||
class="inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground px-2 text-gray-600 dark:text-gray-400"
|
||||
data-id="24"><span class="sr-only" data-id="25">Add Link</span><svg xmlns="http://www.w3.org/2000/svg"
|
||||
|
||||
Reference in New Issue
Block a user