app/models/c80_estate/owner.rb in c80_estate-0.1.0.24 vs app/models/c80_estate/owner.rb in c80_estate-0.1.0.25

- old
+ new

@@ -96,12 +96,14 @@ end r1.count > 0 || mark_is_assigned # || mark_is_owner # true end + # если да, то будет видна кнопка "создать area" def can_create_areas? r1 = roles.where(role_type: 1) - r1.count > 0 + r3 = roles.where(role_type: 3) + r1.count > 0 || r3.count > 0 # true end def can_create_properties? r1 = roles.where(role_type: 1) \ No newline at end of file