문제

I am using FireBird 2.1 and I have a user and a role. I granted execute permission on an stored procedure to role but not to user. When I am trying to execute the stored procedure while logged in as a user with the role, I am getting following error:

Statement #1: no permission for execute access to PROCEDURE SPSELECTMANAGERS.

I checked the roles and users, the user is already added in the roles.

도움이 되었습니까?

해결책

Is the SP recursive? In that case the procedure must have granted right to execute itself, ie add this to the DB creation script:

GRANT EXECUTE ON PROCEDURE SPSELECTMANAGERS TO PROCEDURE SPSELECTMANAGERS;

BTW this behaviour is considered to be a bug and will be fixed in future version (FB 3).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top