-
Notifications
You must be signed in to change notification settings - Fork 126
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
base: beta
Are you sure you want to change the base?
nroer site updates #1956
Conversation
…essage for non-login users when user click on comment button
…ken,group_id,is_authenticated.rating issue resolved
… except home workspace
…replaced to group_obj._id argument
|
||
function check_user_access_policy(obj){ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 %}"> |
There was a problem hiding this comment.
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?
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
button3.In lms.html ,showing
gallery
text on all workspaces tab excepthome
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 togroup_obj._id
argument