Adjust naming of user and model attributes
- Remove unnecessary attributes that cause additional SQL queries - Remove unneeded check for nil on current_item
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
let CurrentUser = {};
|
||||
|
||||
CurrentUser.data = function(key) {
|
||||
return $("body").data(`user-${key}`);
|
||||
return $("body").data(`current-user-${key}`);
|
||||
};
|
||||
|
||||
CurrentUser.update = function(settings) {
|
||||
|
||||
Reference in New Issue
Block a user