{"id":167,"date":"2018-04-13T15:37:27","date_gmt":"2018-04-13T15:37:27","guid":{"rendered":"https:\/\/html5-chat.com\/blog\/?p=167"},"modified":"2018-04-23T10:41:01","modified_gmt":"2018-04-23T10:41:01","slug":"new-feature-roles","status":"publish","type":"post","link":"https:\/\/html5-chat.com\/blog\/new-feature-roles\/","title":{"rendered":"New feature: ROLES"},"content":{"rendered":"<h2>HTML5 chat and roles<\/h2>\n<p>We recently added roles features so users can define with precision what features and options will be available to each user.<\/p>\n<p>This features gives more flexibility to user rights. For now he have 5 roles:<\/p>\n<h3>guest<\/h3>\n<p>This should be used as visitor only with no rights at all. Just to discover the chat<\/p>\n<h3>user<\/h3>\n<p>Normal user with limited rights<\/p>\n<h3>dj<\/h3>\n<p>Same as user: should be able to lunch some youtube videos or do a broadcast to other users<\/p>\n<h3>moderator<\/h3>\n<p>Should have all rights, except permanant ban rights<\/p>\n<h3>admin<\/h3>\n<p>Have All possible rights<\/p>\n<h3>custom1,\u00a0custom2,\u00a0custom3<\/h3>\n<p>These are custom roles that you can use as you want<\/p>\n<p>&nbsp;<\/p>\n<h2>Each role has his own chat rights and features<\/h2>\n<p>You are of course free to assign right to each role and assign a role to an user:<\/p>\n<table  class=\"xcrud-details-table table table-hover\" >\n<tbody>\n<tr>\n<td>Role<\/td>\n<td>Role<\/td>\n<\/tr>\n<tr>\n<td>Can kick<\/td>\n<td>\n<div>\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can ban<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Is user visible ?<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can Broadcast<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can Stream<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can watch<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can Send Text<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can send private text<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can post youtube<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can open any webcam<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can whisper<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can quick message<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Can ask for private chat<\/td>\n<td>\n<div>\u00a0\u00a0yes\/no<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div class=\"colorPicker-picker\"><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>HTML5 chat and roles We recently added roles features so users can define with precision what features and options will be available to each user. This features gives more flexibility to user rights. For now he have 5 roles: guest This should be used as visitor only with no rights at all. Just to discover [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":168,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[37],"class_list":["post-167","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-features","tag-role"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":4,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":174,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/167\/revisions\/174"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media\/168"}],"wp:attachment":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}