mirror of https://github.com/nymea/nymea.git
Allow users with ControlThings permission to read things logs
parent
b409fbe3be
commit
5ea014a507
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue