From 2fadd0279f4150d55e61dfe8f2d2b983dc7a5e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Mon, 27 Apr 2020 18:15:20 +0200 Subject: [PATCH] acme: Add acl_depends annotations to luci-app-acme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Toke Høiland-Jørgensen --- net/acme/Makefile | 2 +- net/acme/files/acme-controller.lua | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/net/acme/Makefile b/net/acme/Makefile index dc581f500..bc0902910 100644 --- a/net/acme/Makefile +++ b/net/acme/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=acme PKG_VERSION:=2.8.5 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/Neilpang/acme.sh/tar.gz/$(PKG_VERSION)? diff --git a/net/acme/files/acme-controller.lua b/net/acme/files/acme-controller.lua index acdd688e4..5f4d0ec31 100644 --- a/net/acme/files/acme-controller.lua +++ b/net/acme/files/acme-controller.lua @@ -1,7 +1,11 @@ module("luci.controller.acme", package.seeall) function index() - entry({"admin", "services", "acme"}, + local page + + page = entry({"admin", "services", "acme"}, cbi("acme"), - _("ACME certs"), 50).dependent = false + _("ACME certs"), 50) + page.dependent = false + page.acl_depends = { "luci-app-acme" } end