Moderator: moderators
ok wrote:I hunted blindly through the subsonic files and found a file called subsonic.script
I guessed that these were the available user roles:
INSERT INTO ROLE VALUES(1,'admin')
INSERT INTO ROLE VALUES(2,'download')
INSERT INTO ROLE VALUES(3,'upload')
INSERT INTO ROLE VALUES(4,'playlist')
INSERT INTO ROLE VALUES(5,'coverart')
INSERT INTO ROLE VALUES(6,'comment')
INSERT INTO ROLE VALUES(7,'podcast')
INSERT INTO ROLE VALUES(8,'stream')
INSERT INTO ROLE VALUES(9,'settings')
INSERT INTO ROLE VALUES(10,'jukebox')
But the admin user only had these eight roles
INSERT INTO USER_ROLE VALUES('admin',1)
INSERT INTO USER_ROLE VALUES('admin',2)
INSERT INTO USER_ROLE VALUES('admin',3)
INSERT INTO USER_ROLE VALUES('admin',4)
INSERT INTO USER_ROLE VALUES('admin',5)
INSERT INTO USER_ROLE VALUES('admin',6)
INSERT INTO USER_ROLE VALUES('admin',7)
INSERT INTO USER_ROLE VALUES('admin',8)
The fix I used
Caveat: this worked for me but you may want to get a second opinion from a Subsonic expert first before proceeding unless you're a daredevil like me.
1) Login to Subsonic as the admin user
2) Change the section of the URL listed as "index.view" to "db.view" (i.e. http://localhost/db.view)
3) Enter select * from user_role where username = 'admin' in the box and click the <OK> button.
4) If it shows only eight roles, Houston we have a problem for v3.7 as there now seem to be 10 roles
5) Enter INSERT INTO USER_ROLE VALUES('admin',9) in the box and click the <OK> button.
6) Note: not sure if this is necessary, but I also entered INSERT INTO USER_ROLE VALUES('admin',10) in the box and click the <OK> button.
7) Reenter select * from user_role where username = 'admin' in the box and click the <OK> button.
The admin user should now have 10 roles, or nine roles if you don't run step 6.Go back to the index view (i.e. http://localhost/index.view)
At this point, I just refreshed my browser and I had access to settings for the admin user.
Cheers
ok
Users browsing this forum: No registered users and 7 guests