Skip to content
Snippets Groups Projects
Commit ad2d54e4 authored by dcz's avatar dcz
Browse files

Super can see all lu-s.

parent bdc2fc79
Branches
No related merge requests found
...@@ -9,7 +9,7 @@ function setup_entries_for_frames_list(options) { ...@@ -9,7 +9,7 @@ function setup_entries_for_frames_list(options) {
) ? gettext("tak") : gettext("nie"); ) ? gettext("tak") : gettext("nie");
} }
user_restrict = options.is_super_user ? '&restrict_to_user='+window.USER_USERNAME : ''; user_restrict = !options.is_super_user ? '&restrict_to_user='+window.USER_USERNAME : '';
const ajaxURL = can_see_assignees ? '/' + window.lang + '/entries/get_entries/?with_lexical_units=true&has_unified_frame=true' : '/' + window.lang + '/entries/get_entries/?with_lexical_units=true&has_unified_frame=true&exclude_status=N' + user_restrict; const ajaxURL = can_see_assignees ? '/' + window.lang + '/entries/get_entries/?with_lexical_units=true&has_unified_frame=true' : '/' + window.lang + '/entries/get_entries/?with_lexical_units=true&has_unified_frame=true&exclude_status=N' + user_restrict;
......
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,7 @@ export default {
}, },
selectEntryId: this.initialEntryId, selectEntryId: this.initialEntryId,
secondarySelectEntryId: this.initialLexicalUnitId, secondarySelectEntryId: this.initialLexicalUnitId,
is_super_user: canViewAssignment is_super_user: this.canViewAssignment
}); });
} }
}, },
...@@ -49,7 +49,8 @@ export default { ...@@ -49,7 +49,8 @@ export default {
this.$emit('unifiedFrameSelected', lexicalUnitUnifiedFrameId, entryId, lexicalUnitId); this.$emit('unifiedFrameSelected', lexicalUnitUnifiedFrameId, entryId, lexicalUnitId);
}, },
selectEntryId: this.initialEntryId, selectEntryId: this.initialEntryId,
secondarySelectEntryId: this.initialLexicalUnitId secondarySelectEntryId: this.initialLexicalUnitId,
is_super_user: this.canViewAssignment
}); });
}, },
}; };
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment