13 lines
297 B
SQL
13 lines
297 B
SQL
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 ;
|