Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nroer site updates #1956

Open
wants to merge 6 commits into
base: beta
Choose a base branch
from
Open

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


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="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.

None yet

2 participants