projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
User platform role modification fix
[osm/UI.git]
/
skyquake
/
plugins
/
user_management
/
src
/
platformRoleManagement
/
platformRoleManagementSource.js
diff --git
a/skyquake/plugins/user_management/src/platformRoleManagement/platformRoleManagementSource.js
b/skyquake/plugins/user_management/src/platformRoleManagement/platformRoleManagementSource.js
index
ad6e818
..
724312e
100644
(file)
--- a/
skyquake/plugins/user_management/src/platformRoleManagement/platformRoleManagementSource.js
+++ b/
skyquake/plugins/user_management/src/platformRoleManagement/platformRoleManagementSource.js
@@
-25,7
+25,7
@@
module.exports = function(Alt) {
type: 'GET',
beforeSend: Utils.addAuthorizationStub,
success: function(data, textStatus, jqXHR) {
type: 'GET',
beforeSend: Utils.addAuthorizationStub,
success: function(data, textStatus, jqXHR) {
- resolve(data.user
s
);
+ resolve(data.user);
}
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
}
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
@@
-80,6
+80,7
@@
module.exports = function(Alt) {
url: `/platform?api_server=${API_SERVER}`,
type: 'PUT',
data: project,
url: `/platform?api_server=${API_SERVER}`,
type: 'PUT',
data: project,
+ dataType: 'json',
beforeSend: Utils.addAuthorizationStub,
success: function(data, textStatus, jqXHR) {
resolve(data);
beforeSend: Utils.addAuthorizationStub,
success: function(data, textStatus, jqXHR) {
resolve(data);