fixes #1980: permissions follow role's inheritance
TESTS FOR #1980
Deleted some unuseful declarations
Merge pull request #2015 from giastfader/develop

fixed  #1980: Record Level Security: permissions don't follow role's inheritance