fixes #5963 - fix Role has_permission? function
(cherry picked from commit 3f5ddc49bd321a23dd8fc17e6b3cd64bfd3f5e4a)
fixes #5963 - fix Role has_permission? function
(cherry picked from commit 3f5ddc49bd321a23dd8fc17e6b3cd64bfd3f5e4a)