freifunk-berlin / firmware

DEPRECATED: Build system for Berlin firmware. Please user the pinned falter-repos instead
https://berlin.freifunk.net
GNU General Public License v3.0
74 stars 34 forks source link

luci-app-*: fix all uci permissions #818

Closed PolynomialDivision closed 4 years ago

PolynomialDivision commented 4 years ago

With new openwrt versions the luci scripts that use rpcd to call uci are broken. We have to define through acl.d the permissions for each app, like I alread did in https://github.com/freifunk-berlin/firmware-packages/pull/206

That is for berlin firmware-packages:

openwrt-packages:

Useful to debug the apps is a code snippet:

local profile, err = uci:get("freifunk","community","name")
if profile == false then
    luci.util.perror(err)
end
SvenRoederer commented 4 years ago

Thanks for working this out.