This question has been flagged
2 Replies
4629 Views

Hiiii

I have made a module and i want to give access only to admin to access that module by an code.

I know we can give it by making group and then go to Setting -> Groups and by here i can perform my task by giving access right but i want it by an code.

So please help me.

Thanks

Avatar
Discard
Best Answer

Any new model you create in a module will only be available to the admin user by default, unless you define security for it (users/groups/access rights).

Avatar
Discard

@ Ray. Can we create a new user with limited admin privilege. ie, he has only permission to confirm sale or not to create order.

Best Answer

You can check it. If uid==1 so it's going to work only to the admin user.

Avatar
Discard