Skip to content

Commit

Permalink
Enable app registration (#1261)
Browse files Browse the repository at this point in the history
* Show register app button to all logged in users
  • Loading branch information
michaeljcollinsuk authored Mar 18, 2024
1 parent 896efe0 commit 937343d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controlpanel/frontend/jinja2/webapp-create.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h1 class="govuk-heading-xl">{{ page_title }}</h1>

<div class="govuk-form-group" id="container-element">

<label class="govuk-label govuk-label--m" for="display_result_repo">Github repository
<label class="govuk-label govuk-label--m" for="display_result_repo">Github repository URL
</label>

{% set error_repo_msg = form.errors.get("repo_url") %}
Expand Down
2 changes: 1 addition & 1 deletion controlpanel/frontend/jinja2/webapp-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 class="govuk-heading-xl">{{ page_title }}</h1>
{% if request.user.has_perm('api.list_app') %}
{{ app_list(apps, request.user) }}

{% if request.user.is_superuser and request.user.has_perm('api.create_app') %}
{% if request.user.has_perm('api.create_app') %}
<p class="govuk-body">
<a class="govuk-button" href="{{ url('create-app') }}">
Register an app
Expand Down

0 comments on commit 937343d

Please sign in to comment.