english/administrator/components/com_users/controllers/user.php
/**
	 * Overrides JControllerForm::allowEdit
	 *
	 * Checks that non-Super Admins are not editing Super Admins.
	 *
	 * @param	array	An array of input data.
	 * @param	string	The name of the key for the primary key.
	 *
	 * @return	boolean
	 * @since	1.6
	 */
Overrides JControllerForm::allowEdit
Checks that non-Super Admins are not editing Super Admins.

@param       array   An array of input data.
@param       string  The name of the key for the primary key.


Overrides JControllerForm :: allowEdit Checks that non - Super Admins are not editing Super Admins . @param array An array of input data . @param string The name of the key for the primary key .
protected function allowEdit($data = array(), $key = 'id')
	{
		if (JAccess::check($data[$key], 'core.admin')) {
			if (!JFactory::getUser()->authorise('core.admin')) {
				return false;
			}
		}
		return parent::allowEdit($data, $key);
	}
protected function allowEdit ( $ data = array ( ) , $ key = 'id' ) { if ( JAccess :: check ( $ data [ $ key ] , 'core.admin' ) ) { if ( ! JFactory :: getUser ( ) -> authorise ( 'core.admin' ) ) { return false ; } } return parent :: allowEdit ( $ data , $ key ) ; }
Overrides JControllerForm::allowEdit
 Checks that non-Super Admins are not editing Super Admins.
Overrides JControllerForm :: allowEdit Checks that non - Super Admins are not editing Super Admins .
// Check if this person is a Super Admin // If I'm not a Super Admin, then disallow the edit.