Database Models

Database Models

by joao silva -
Number of replies: 2

I wanna know if there is possible put one model to add regist and another to edit regists, or another way to do it.

Example: i want users add the attributes name and age, and the admin can edit the regist to add the attribute telephone number


Is that possible? Thanks

Average of ratings: -
In reply to joao silva

Re: Database Models

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers
I think you’re talking about custom user profile fields rather than the Database activity - but apologies if I’m wrong.

See https://docs.moodle.org/38/en/User_profile_fields

If it IS the database activity you’re wanting to do this in, then you need to vote for MDL-58680 and MDL-17223 and then you’ll be able to have fields that can be read only, write only, or both to specific roles using a filter.
Average of ratings: Useful (1)