Sorry no demo available :(
Non-Admin:
- Create account
- Manage account (change password and avatar)
- View other users account, this includes the users basic information: email, avatar, previous postings, previous comments
- Edit/Delete their postings
- Edit/Delete their comments
Admin: Includes all the access of a non-admin plus:
- Can see and access the categories page
- Edit/Delete all postings and comments
Setting a user as admin: To set a existing user as an admin account modify the
Run the following SQL command to set the users 'role' to 1, which will give them admin access:
UPDATE AspNetUsers SET Role = 1 WHERE Email = 'user-to-be-admin@email.com';
No other tables need to be modified, however a logoff/login to the account may be needed. Set the Role column to null to return the user to Non-Admin rights.
Running non-locally:
- Modify the connection string to connect to a non local database
- Create the necessary tables once connected to the database. To do this easily open "Main.edmx" and right click on the background of the visual editor, select "Generate Database from Model..." this tool will give you the SQL queries required to create the tables.