21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1455 Views |
-
Model Admin Permission

28 May 2010 at 7:24am
I saw there was another thread of this but it didn't answer my question. I want to give a user access to a model admin and nothing else. I can make it happen so they log in and see the model admin page but they can only search, not add. when I check "Full administrative rights" they can see everything and add objects. however, if I uncheck "Full administrative rights" but still check every single other box they can search but not add - so something strange is going on. anybody know how to fix this?
-
Re: Model Admin Permission

28 May 2010 at 8:46pm Last edited: 28 May 2010 8:47pm
override the following functions like this for each dataobject that is being managed...
function canCreate() {return true;}
function canEdit() {return true;}
function canDelete() {return true;}Barry
-
Re: Model Admin Permission

24 June 2010 at 8:20am
add to your dataobject class.
ie
class MyDataObject extends DataObject {
.....
function canCreate() {return true;}}
?>
-
Re: Model Admin Permission

24 June 2010 at 9:52am
It's in the file containing the dataobject class you want to apply the permission to.
see my reply to your other question for a more comprehensive answer
Rich
| 1455 Views | ||
|
Page:
1
|
Go to Top |



