mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-14617 removed legacy add admin code
This commit is contained in:
parent
e29b04a047
commit
bcd0603fbd
1 changed files with 0 additions and 12 deletions
|
@ -240,18 +240,6 @@ function isguest($userid=0) {
|
|||
return has_capability('moodle/legacy:guest', $context, $userid, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an admin to a site
|
||||
*
|
||||
* @uses SITEID
|
||||
* @param int $userid The id of the user that is being tested against.
|
||||
* @return bool
|
||||
* @TODO: remove from cvs
|
||||
*/
|
||||
function add_admin($userid) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function get_user_info_from_db($field, $value) { // For backward compatibility
|
||||
return get_complete_user_data($field, $value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue