Allow users with ControlThings permission to read things logs

pull/628/head
Michael Zanetti 2023-02-12 23:42:39 +01:00
parent b409fbe3be
commit 5ea014a507
3 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ LoggingHandler::LoggingHandler(QObject *parent) :
returns.insert("o:logEntries", objectRef<LogEntries>());
returns.insert("count", enumValueName(Int));
returns.insert("offset", enumValueName(Int));
registerMethod("GetLogEntries", description, params, returns);
registerMethod("GetLogEntries", description, params, returns, Types::PermissionScopeControlThings);
// Notifications
params.clear();

View File

@ -5,7 +5,7 @@ NYMEA_VERSION_STRING=$$system('dpkg-parsechangelog | sed -n -e "s/^Version: //p"
# define protocol versions
JSON_PROTOCOL_VERSION_MAJOR=7
JSON_PROTOCOL_VERSION_MINOR=0
JSON_PROTOCOL_VERSION_MINOR=1
JSON_PROTOCOL_VERSION="$${JSON_PROTOCOL_VERSION_MAJOR}.$${JSON_PROTOCOL_VERSION_MINOR}"
LIBNYMEA_API_VERSION_MAJOR=7
LIBNYMEA_API_VERSION_MINOR=3

View File

@ -1,4 +1,4 @@
7.0
7.1
{
"enums": {
"BasicType": [
@ -1341,7 +1341,7 @@
"Variant"
]
},
"permissionScope": "PermissionScopeAdmin",
"permissionScope": "PermissionScopeControlThings",
"returns": {
"count": "Int",
"loggingError": "$ref:LoggingError",