greybel-mock-environment 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,6 +125,13 @@ var Entity = /** @class */ (function () {
125
125
  Entity.prototype.getPermissions = function (user) {
126
126
  // g is ignored for now
127
127
  // todo: add group logic
128
+ if (user.username === 'root') {
129
+ return {
130
+ r: true,
131
+ w: true,
132
+ x: true
133
+ };
134
+ }
128
135
  var parsedPermissions = this.parsePermissions();
129
136
  if (this.owner === user.username) {
130
137
  return parsedPermissions.u;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-mock-environment",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Mock environment",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",