D
D
Denis Kazachenkov2014-05-20 22:29:08
Kohana
Denis Kazachenkov, 2014-05-20 22:29:08

Separation of users and administrators on the site according to different tables?

Hello. I am writing a small online store (a bicycle, so to speak). There was such an absurd question. Do I need to separate clients and administrators (moderators, managers) into different tables? From a security point of view, it seems to me easier to keep them in different tables, otherwise it becomes possible for a simple client to increase privileges (role) to admin. Well, the data set of these individuals is of course different, which also suggests a 2nd division. Will it be right? And if so, maybe someone implemented it on kohana, maybe there are examples?
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
timatecue, 2014-05-20
@BASSON_XVI

And if a manager wants to place an order or an administrator, do you need to register?
In kohana, when using the Auth module, all users are stored in users, roles - in roles, relationships - roles_users. Accordingly, if the user has the admin role, then this is also an administrator.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question