Sale_El Posted October 6, 2015 Posted October 6, 2015 Hey all, Does anyone know if there is a way to stop a group of users overriding the bookings of statics and other bookings apart from an admin user? Seems like all our staff can just override anything they want. our resources look like this; About to roll the booking system out but its useless if everyone can steal each others slots! thanks in advance
nickbro Posted October 6, 2015 Posted October 6, 2015 Can you paste the entire bookingsystem section please?
Sale_El Posted October 7, 2015 Author Posted October 7, 2015 (edited) Hi Nick thanks for the reply, thanks for pointing me in the right direction, i noticed that teacher_users were admins so i have changed this, but when teachers log in now they get an unauthorised error? Here is the code; Edited October 7, 2015 by Sale_El
nickbro Posted October 7, 2015 Posted October 7, 2015 Teaching_Users shouldn't be admins, and if the admins are the same as the booking system you use inherit. Check the ~/bookingsystem/web.config file to see if they are unauthorised. I would also set the showto="all". Hide from can be left blank as you should be blocking students from the booking system using the web.config file instead.
nickbro Posted October 7, 2015 Posted October 7, 2015 (edited) So my recomendations are: Edited October 7, 2015 by nickbro
Sale_El Posted October 7, 2015 Author Posted October 7, 2015 Hey Nick, Thanks for the help here, unfortunately its still saying unauthorised for teacher users.
nickbro Posted October 7, 2015 Posted October 7, 2015 Ok, that is odd, can you go to https://hapsite.domain/hap/api/ad/roles/teachersusername That should give you a list of roles HAP knows for that user Are you using the showto="All"? because if you aren't that may be causing some issues
Sale_El Posted October 7, 2015 Author Posted October 7, 2015 I have pretty much copied your recommendation into the relevant places, going to this link just gives me a white page with ["Authenticated Users"] and nothing else. thanks
nickbro Posted October 7, 2015 Posted October 7, 2015 Ok did you replace teachersusername with a username of a teacher?
Sale_El Posted October 12, 2015 Author Posted October 12, 2015 hey Nick, sorry for the delay, when i put a teacher in there i get ["Authenticated Users","Domain Users","Users","Office_Users","Non_Teaching_Users","Printing Sixth Form","All Users","Webprint","Liveregister"] looks like teacher_users are not there?
Sale_El Posted October 12, 2015 Author Posted October 12, 2015 Ok after adding the groups again correctly it is now working, thanks so much for your help nick, that command is very useful.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now