Thanks pbaldy your solution works perfectly but I have an another issue to set different permission to different types of users. Like If login as admin to have full, login as class teacher allow to addition and edit ,login as teacher or student then allow read only. How to do this...