Browse code

BM-12928 Fix: outlook non expanded verbs check

Nicolas Lascombes authored on 08/03/2018 10:33:53
Showing 1 changed files
... ...
@@ -23,6 +23,7 @@ using System.Runtime.Serialization;
23 23
 using core2client;
24 24
 using net.bluemind.addressbook.api;
25 25
 using net.bluemind.core.api;
26
+using net.bluemind.core.container.model.acl;
26 27
 using net.bluemind.user.api;
27 28
 
28 29
 // ReSharper disable NonReadonlyMemberInGetHashCode
... ...
@@ -506,4 +507,19 @@ namespace net.bluemind.addressbook.api
506 506
     }
507 507
     #endregion VCardRelated
508 508
     #endregion card
509
+}
510
+
511
+namespace net.bluemind.core.container.model
512
+{
513
+    public partial class ContainerDescriptor
514
+    {
515
+        private static readonly List<Verb> _readVerbs = new List<Verb> { Verb.All, Verb.Write, Verb.Read };
516
+        /// <summary>
517
+        /// Extra. Has All, Write or Read verb.
518
+        /// </summary>
519
+        public bool Readable
520
+        {
521
+            get { return verbs.Intersect(_readVerbs).Any(); }
522
+        }
523
+    }
509 524
 }
510 525
\ No newline at end of file