mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-21 15:35:16 +00:00
Adds custom DRF metadata handler
- Limit available "actions" data to only what the user is allowed to do
This commit is contained in:
1 parent
058e53459b
commit
eaa5913c8c
3 files changed
+72
-4
No files matched your search
@@ -23,7 +23,8 @@
|
||||
*/
|
||||
function getApiEndpointOptions(url, options={}) {
|
||||
|
||||
$.ajax({
|
||||
// Return the ajax request object
|
||||
return $.ajax({
|
||||
url: url,
|
||||
type: 'OPTIONS',
|
||||
contentType: 'application/json',
|
||||
@@ -31,8 +32,7 @@ function getApiEndpointOptions(url, options={}) {
|
||||
accepts: {
|
||||
json: 'application/json',
|
||||
},
|
||||
success: function(response) {
|
||||
console.log(response);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user