13 lines
297 B
MySQL
13 lines
297 B
MySQL
|
DROP FUNCTION IF EXISTS account.userHasRoleId;
|
||
|
|
||
|
DELIMITER $$
|
||
|
CREATE DEFINER=`root`@`%` FUNCTION `account`.`userHasRoleId`(vUser VARCHAR(255), vRoleId INT) RETURNS tinyint(1)
|
||
|
DETERMINISTIC
|
||
|
BEGIN
|
||
|
/**
|
||
|
* @deprecated Use user_hasRoleId()
|
||
|
*/
|
||
|
RETURN user_hasRoleId(vUser, vRoleId);
|
||
|
END$$
|
||
|
DELIMITER ;
|