Display when the user is a moderator, a administrator or a member of a group.

This commit is contained in:
Pierre HUBERT
2018-07-05 08:38:52 +02:00
parent 9866298f19
commit a100d4a403
5 changed files with 65 additions and 0 deletions

View File

@ -90,5 +90,12 @@ ComunicWeb.pages.groups.pages.forbidden = {
innerHTML: result.name,
class: "group-name"
});
//Add a notice
add_p(boxBody, "A registration is required to access this group contents.");
//Append membership block (if the user is signed in)
if(signed_in())
ComunicWeb.pages.groups.sections.membershipBlock.display(result);
},
}