LT-275: Storing and showing common used labels
This commit is contained in:
1 parent
7d58d84d48
commit
7d4c76ddb0
10 files changed
+114
-14
No files matched your search
@@ -14,8 +14,11 @@ OHIF.user.getData = key => {
|
||||
// Check if there is an user logged in
|
||||
OHIF.user.validate();
|
||||
|
||||
// Get user profile data
|
||||
const profile = Meteor.user().profile;
|
||||
|
||||
// Get the user persistent data
|
||||
const data = Meteor.user().profile.persistent;
|
||||
const data = profile && profile.persistent;
|
||||
|
||||
if (data) {
|
||||
return data[key];
|
||||
|
||||
Reference in new issue
Block a user