Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

SS3 permissions problem


Reply

3 Posts   402 Views

Avatar
voodoochile

23 October 2012 at 10:17pm Community Member, 52 Posts

Hi all

I have some custom data objects using model admin, I have setup a new user that i only want to see certian parts of the model admin of which one of these is my dataobject.

When i login as this user the menu shows the appropiate buttons including my data object when i enter that particular object there is no data showing.

I have enterd a couple of entries logged in as admin, am i missing something here? i would like this user to be able to view data entered by other users without having to worry about all the other modeladmin functions i.e assets, Security, pages as they only need to see the dataobject in question and the reports button.

Avatar
martimiz

23 October 2012 at 11:53pm Forum Moderator, 1091 Posts

You can use the canCreate() function for a DataObject to determine if an add button is displayed. Same way for the delete button (canDelete) and the edit link (canEdit) in ModelAdmin. Use these methods to check on the current member. Basically he only needs canView() to return true...

Martine

Avatar
voodoochile

24 October 2012 at 9:38pm Community Member, 52 Posts

Thanks for your reply martimiz

this gave me enough clues to point me in the direction i needed, my end result dosnt look great, but it has achieved what i needed it to for now.

i will clean it up a little later.