[Git][noosfero/noosfero][master] api: expose profile and environment theme

Victor Costa gitlab at mg.gitlab.com
Fri May 12 14:08:44 BRT 2017


Victor Costa pushed to branch master at Noosfero / noosfero


Commits:
8855f394 by Victor Costa at 2017-05-12T14:08:29-03:00
api: expose profile and environment theme

- - - - -


1 changed file:

- app/api/entities.rb


Changes:

=====================================
app/api/entities.rb
=====================================
--- a/app/api/entities.rb
+++ b/app/api/entities.rb
@@ -148,6 +148,7 @@ module Api
         Entities.permissions_for_entity(profile, options[:current_person],
         :allow_post_content?, :allow_edit?, :allow_destroy?)
       end
+      expose :theme
     end
 
     class UserBasic < Entity
@@ -316,6 +317,7 @@ module Api
       expose :permissions, if: lambda { |environment, options| options[:current_person].present? } do |environment, options|
         environment.permissions_for(options[:current_person])
       end
+      expose :theme
     end
 
     class Tag < Entity



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/8855f3943c23b495ee51eaf52e5da06536e1003e

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/8855f3943c23b495ee51eaf52e5da06536e1003e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170512/95942a84/attachment.html>


More information about the Noosfero-dev mailing list