additional changes because of datamapper

making permissions work