access_level: Fixed logical bug of access for public, private and custom option for folder and corrected related tests.

(ActionItem 2852)

Signed-off-by: Carlos Andre <carlos.andre.souza@msn.com>
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com>