Codeshare List of user-contributed code snippets for dotCMS Java CMS.

Tagged: "users"

Deleting a User from the Database

Author: Will | Created: Jul 10, 2012

This SQL will delete/repoint references to a user. This SQL needs to be run in the DB and once complete, you will need to flush the cache for the user...

Get the logged in user and see if they have a role

Author: David Higginbotham | Created: Feb 16, 2012

This code will retrieve the user id of the logged in user. It will then check to see if the user has the Cms Administrator role. I used this logic with...