*/
require_once(GLM_MEMBERS_CONTACTS_PLUGIN_SETUP_PATH.'/permissions.php');
+
+// If they are a restricted user, kick them back out
+if (current_user_can('glm_members_restricted_contact')) {
+ wp_logout();
+}
+
/*
* Add filter to redirect user to a particular destination on
* login based on their roles.
foreach ($user->roles as $r) {
if (substr($r,0,12) != 'glm_members_') {
// Go to normal destination for this user
- return 'htt://www.gaslightmedia.com';
+ return $redirect_to();
}
}
// If we get here, this is a pure contact user, start them at their profile
+
return '/wp-admin/admin.php?page=glm-members-admin-menu-profile';
}