Fixes getting account's permissions

Signed-off-by: Mario Krizmanic <mario.krizmanic@gmail.com>