|
请问各位前辈,小弟要做一个set authority level to user account的function,比如说guest可以view罢了,staff可以view & update个人资料,admin可以full authority...
用Visual Basic 2008,我想到的是在database table加一个column名叫userLevel
if userLevel = 1 then
' put ur coding here
else if userLevel = 2 then
' put ur coding here
各位前辈有没有比较简单或者更好的做法?
|
|