lib/you_track/client/model.rb in you_track-0.3.0 vs lib/you_track/client/model.rb in you_track-0.4.0
- old
+ new
@@ -6,6 +6,10 @@
rescue ArgumentError
v
end
}
end
+
+ def require_admin!
+ raise YouTrack::NotAnAdminError unless service.current_user.admin?
+ end
end