Skip to content

nroer site updates#1956

Open
siddhudhangar wants to merge 6 commits intognowledge:betafrom
siddhudhangar:nroer_beta
Open

nroer site updates#1956
siddhudhangar wants to merge 6 commits intognowledge:betafrom
siddhudhangar:nroer_beta

Conversation

@siddhudhangar
Copy link

1.In rating.html file changed,added three hidden input type field for csrf_token,group_id,is_authenticated.
2.In in-line-texteditor.html , added js function to show alert message for non-login users when user click on comment button
3.In lms.html ,showing gallery text on all workspaces tab except home workspace.
4.In widget_user_search.html, replaced text Find Students to Find Members.
5.In method.py file, group_obj argument of user_access_policy() function replaced to group_obj._id argument

</script>


function check_user_access_policy(obj){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use widget_user_access_modal which does this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any update on this?

<input type="hidden" name="csrf_token" class="csrf_token" value= "{{csrf_token}}">
<input type="hidden" name="group_id" class="group_id" value= "{{group_id}}">
<input type="hidden" name="is_contributor" class="is-contributor-{{node.pk}}" "{% if request.user.id in node.contributors %}" value= "True" "{% endif %}">
<input type="hidden" name="is_authenticated" class="is_authenticated" "{% if user.is_authenticated %}" value="True" "{% else %}" value= "False" "{% endif %}">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_authenticated flag can be checked on templates using block-tags and also in views. why would we need a hidden variable for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants