blackstack-core 1.2.24 → 1.2.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/functions.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8e8289041dc2000baf6f5d204c12b62021838bf318fcce60933e0c652cd97bd
|
4
|
+
data.tar.gz: 16177674864ec6526ec58837f987a2c4bab05b9252ffbbdc3b569fc20b99a9b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78a2f610d61ac99ff614fd00f9b7b2f9fa54f26df4624558c7f5fcdd1ce53d0ee880da32874ab00a65a2f261654b533a3113ed9c7b5a1d868452c5bc61d95c37
|
7
|
+
data.tar.gz: da91d843cf17ea3d129e68cce69f62b9d181a0db6bb193ca110f08bdfa421f8bc7774c76365ea08e562d83dad86b582a5fc2e88393419a7d28a2f20dfa2e7468
|
data/lib/functions.rb
CHANGED
@@ -109,7 +109,7 @@ module BlackStack
|
|
109
109
|
|
110
110
|
# sysowner must provide the id_account for getting an account value.
|
111
111
|
# for non sysowner it is assigned to his account.
|
112
|
-
def self.account_value(
|
112
|
+
def self.account_value(id_account:nil, field:)
|
113
113
|
params = {}
|
114
114
|
params['id_account'] = id_account
|
115
115
|
params['field'] = field
|
@@ -126,13 +126,17 @@ module BlackStack
|
|
126
126
|
# Get array of hash descriptor of profile.
|
127
127
|
#
|
128
128
|
# Parameters:
|
129
|
+
# - id_account: guid. Id of the account to bring the profiles. Sysowner must provide the id_account for getting an account value. For non sysowner it is assigned to his account.
|
130
|
+
# - promiscuous: boolean. It works only for Sysowner. If true, it will bring all non-deleted rows. If false, it will bring only rows matching id_profile. Default: false.
|
129
131
|
# - page: integer. Page number.
|
130
132
|
# - limit: integer. Number of profiles per page.
|
131
133
|
# - params: hash. Additional filter parameters used by the specific child class.
|
132
134
|
#
|
133
|
-
def self.page(page:, limit:, filters: {})
|
135
|
+
def self.page(id_account: nil, promiscuous: false, page:, limit:, filters: {})
|
134
136
|
# add page and limit to the params
|
135
137
|
params = {}
|
138
|
+
params['id_account'] = id_account
|
139
|
+
params['promiscuous'] = promiscuous
|
136
140
|
params['page'] = page
|
137
141
|
params['limit'] = limit
|
138
142
|
params['filters'] = filters
|