Solution:
maybe you mean something like that http://wordpress.org/extend/plugins/user-access-manager/