not-node 5.1.25 → 5.1.26
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.
- package/package.json +1 -1
- package/src/generic/logic.js +20 -0
package/package.json
CHANGED
package/src/generic/logic.js
CHANGED
|
@@ -536,6 +536,26 @@ module.exports = ({
|
|
|
536
536
|
return result;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
+
static async listAll({ activeUser, ip, root }) {
|
|
540
|
+
return await this._listAll({
|
|
541
|
+
activeUser,
|
|
542
|
+
ip,
|
|
543
|
+
root,
|
|
544
|
+
action: "listAll",
|
|
545
|
+
shouldOwn: false,
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
static async listAllOwn({ activeUser, ip, root }) {
|
|
550
|
+
return await this._listAll({
|
|
551
|
+
activeUser,
|
|
552
|
+
ip,
|
|
553
|
+
root,
|
|
554
|
+
action: "listAllOwn",
|
|
555
|
+
shouldOwn: true,
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
|
|
539
559
|
static async _listAndCount({
|
|
540
560
|
query,
|
|
541
561
|
activeUser,
|