Skip to content

Commit

Permalink
moved PublicPage before Admin rule
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Aug 7, 2024
1 parent 0179fc2 commit f27a702
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ build-push-dev:

.PHONY: run
run:
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister windmill_app --silent --force || true
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister windmill_app --silent --force --keep-data || true
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register windmill_app --force-scopes \
--info-xml https://raw.githubusercontent.com/cloud-py-api/windmill_app/main/appinfo/info.xml

Expand Down
8 changes: 4 additions & 4 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
</scopes>
<routes>
<route>
<url>.*</url>
<url>^api\/w\/nextcloud\/jobs\/.*</url>
<verb>GET,POST,PUT,DELETE</verb>
<access_level>ADMIN</access_level>
<access_level>PUBLIC</access_level>
<headers_to_exclude>[]</headers_to_exclude>
</route>
<route>
<url>^api\/w\/nextcloud\/jobs\/.*</url>
<url>.*</url>
<verb>GET,POST,PUT,DELETE</verb>
<access_level>PUBLIC</access_level>
<access_level>ADMIN</access_level>
<headers_to_exclude>[]</headers_to_exclude>
</route>
</routes>
Expand Down

0 comments on commit f27a702

Please sign in to comment.