Skip to content

Commit

Permalink
ucfopen#46 Updated name of API method.
Browse files Browse the repository at this point in the history
  • Loading branch information
FrenjaminBanklin committed Feb 22, 2019
1 parent 68d1427 commit ec95955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/services/srv-selectedwidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ app.service('selectedWidgetSrv', function($rootScope, $q, OBJECT_TYPES) {

const getPublishPermission = () => {
const deferred = $q.defer()
Materia.Coms.Json.send('publish_verify', [_widget.widget.id]).then(response => {
Materia.Coms.Json.send('widget_publish_perms_verify', [_widget.widget.id]).then(response => {
deferred.resolve(response)
})
return deferred.promise
Expand Down
2 changes: 1 addition & 1 deletion src/js/services/srv-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ app.service('widgetSrv', function(selectedWidgetSrv, dateTimeServ, $q, $rootScop

const canBePublishedByCurrentUser = inst_id => {
const deferred = $q.defer()
Materia.Coms.Json.send('publish_verify', [inst_id]).then(response => {
Materia.Coms.Json.send('widget_publish_perms_verify', [inst_id]).then(response => {
deferred.resolve(response)
})

Expand Down

0 comments on commit ec95955

Please sign in to comment.