PHP User based Data Edit and Delete Using YII -
i working on php yii (version 1.15) user management application.
my scenario: user can assigned supervisor , there 'n' numbers of subordinates can assign user. likewise, there many supervisor available in application. users details falls in 1 table.
objective: want give access supervisor edit , delete assigned subordinates. other users data, can't able modify.
what tried: validating phone call everytime before supervisor clicks edit button of subordinates. (i have many forms, have utilize code many places repeatedly)
please help me solve issue.
is possible add together column user table?
if it's possible, should add together 1 column in user table indicates user's supervisor. can contain supervisor id. supervisors have null
value column, column should nullable. can utilize value of column validate supervisor's access edit , delete matching id of supervisor column's value.
php yii user-management validation
No comments:
Post a Comment