Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Update source
Browse files Browse the repository at this point in the history
* users could not write to
   AAS Properties via OPC UA
   mapping
* fix: for PropertyState<T>, set
   (User)AccessLevel accordingly.
  • Loading branch information
MichaelHoffmeisterFesto committed Nov 5, 2020
1 parent d653e5b commit b6e5ca1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/AasxPackageExplorer/AasxPackageExplorer.csproj.user

This file was deleted.

8 changes: 8 additions & 0 deletions src/AasxPackageExplorer/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"profiles": {
"AasxPackageExplorer": {
"commandName": "Project",
"commandLineArgs": "-read-json options-debug.json"
}
}
}
3 changes: 3 additions & 0 deletions src/AasxUaNetServer/AasxServer/AasEntityBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ public PropertyState<T> CreateAddPropertyState<T>(
x.TypeDefinitionId = typeDefinitionId;
}

x.AccessLevel = AccessLevels.CurrentReadOrWrite;
x.UserAccessLevel = AccessLevels.CurrentReadOrWrite;

return x;
}

Expand Down

0 comments on commit b6e5ca1

Please sign in to comment.