Exemple #1
0
 public static bool HasCategories(IStorePropertyBag storePropertyBag)
 {
     string[] array = null;
     if (OwaContext.Current.UserContext.CanActAsOwner)
     {
         array = ItemUtility.GetProperty <string[]>(storePropertyBag, ItemSchema.Categories, null);
     }
     return((array != null && 0 < array.Length) || ItemUtility.GetLegacyColoredFlag(storePropertyBag) != int.MinValue);
 }