zm-ruby-client 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc6a53d33693c743ac59f3def5735ef00d4a2f9d4feafab8f4720b48b7d069f5
|
4
|
+
data.tar.gz: bcd2ac7909f540235059b33ab38199ee190f68ef19e6456646afd10384afa0b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c844b6a661de90a8e84c0ba4daf4e4b2a5099cf07f6060ec9a5b9f401295e200cb958d5f1b196ab74f90af78eede43cec42697acc3f4dfe13a5744e4b52ccd06
|
7
|
+
data.tar.gz: d67a446318e4c9064e054eb88f3bec7a4f95bb093e633d8f14ee9e4a6dade4d9ef0521739fd9a10a13cf3227ca550c16b4f5c4e9c6b8b997dbd0a75017182d78
|
data/lib/zm/client/ace/ace.rb
CHANGED
@@ -6,6 +6,42 @@ module Zm
|
|
6
6
|
class AcesCollection < Base::AccountObjectsCollection
|
7
7
|
attr_reader :rights
|
8
8
|
|
9
|
+
def new_from_object(item, right)
|
10
|
+
case item
|
11
|
+
when Account
|
12
|
+
zid = item.id
|
13
|
+
gt = Ace::GT_USER
|
14
|
+
when Resource
|
15
|
+
zid = item.id
|
16
|
+
gt = Ace::GT_USER
|
17
|
+
when DistributionList
|
18
|
+
zid = item.id
|
19
|
+
gt = Ace::GT_GROUP
|
20
|
+
when Domain
|
21
|
+
zid = item.id
|
22
|
+
gt = Ace::GT_DOMAIN
|
23
|
+
else
|
24
|
+
zid = nil
|
25
|
+
gt = nil
|
26
|
+
end
|
27
|
+
|
28
|
+
new do |ace|
|
29
|
+
ace.zid = zid
|
30
|
+
ace.gt = gt
|
31
|
+
ace.right = right
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def create_from_object(item, right)
|
36
|
+
ace = new_from_object(item, right)
|
37
|
+
add(ace)
|
38
|
+
ace
|
39
|
+
end
|
40
|
+
|
41
|
+
def add(ace)
|
42
|
+
@all << ace
|
43
|
+
end
|
44
|
+
|
9
45
|
def initialize(parent)
|
10
46
|
super(parent)
|
11
47
|
@child_class = Ace
|
data/lib/zm/client/version.rb
CHANGED
@@ -733,3 +733,4 @@ zimbraPrefDefaultCalendarId,"account,cos,calendarResource",,,single,,,cstring,,,
|
|
733
733
|
zimbraRecoveryAccountCodeValidity,"account,cos,calendarResource",,,single,,,cstring,,,,
|
734
734
|
zimbraResetPasswordRecoveryCodeExpiry,"account,cos,calendarResource",,,single,,,cstring,,,,
|
735
735
|
zimbraShowClientTOS,"account,domain,cos,calendarResource",,,single,,,cstring,,,,
|
736
|
+
zimbraDistributionListSendShareMessageToNewMembers,distributionList,,,single,,,boolean,,,,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zm-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxime Désécot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|