You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create role admin
grant all privileges onu_michaluk.dbo to admin
Dyrektor
create role dyrektor
grantselecton NUMBER_OF_PEOPLE_REGISTRED_FOR_FUTURE_EVENTS to dyrektor
grantselecton NUMBER_OF_PEOPLE_REGISTRED_FOR_FUTURE_COURSE_MODULES to dyrektor
grantselecton NUMBER_OF_PEOPLE_REGISTERED_FOR_FUTURE_STUDY_MEETINGS to dyrektor
grantselecton NUMBER_OF_PEOPLE_REGISTERED_FOR_FUTURE_WEBINARS to dyrektor
grantselecton ATTENDANCE_SUMMARY to dyrektor
grantselecton COURSE_MODULES_ATTENDANCE_SUMMARY to dyrektor
grantselecton STUDY_MEETINGS_ATTENDANCE_SUMMARY to dyrektor
grantselecton WEBINARS_ATTENDANCE_SUMMARY to dyrektor
grantselecton LIST_OF_DEBTORS to dyrektor
Księgowy
create role ksiegowy
grantselecton LIST_OF_DEBTORS to ksiegowy
grantselecton ALL_FUTURE_EVENTS_LIST to ksiegowy
grantselecton NUMBER_OF_PEOPLE_REGISTRED_FOR_FUTURE_EVENTS to ksiegowy
grantselecton NUMBER_OF_PEOPLE_REGISTRED_FOR_FUTURE_COURSE_MODULES to ksiegowy
grantselecton NUMBER_OF_PEOPLE_REGISTERED_FOR_FUTURE_STUDY_MEETINGS to ksiegowy
grantselecton NUMBER_OF_PEOPLE_REGISTERED_FOR_FUTURE_WEBINARS to ksiegowy
grantselecton FINANCIAL_REPORT to ksiegowy
grantselecton COURSES_FINANCIAL_REPORT to ksiegowy
grantselecton STUDIES_FINANCIAL_REPORT to ksiegowy
grantselecton WEBINARS_FINANCIAL_REPORT to ksiegowy
grantselect, insert, update, deleteon Orders to ksiegowy
grantselect, insert, update, deleteon OrderDetails to ksiegowy
grantselect, insert, update, deleteon OrderStudies to ksiegowy
grantselect, insert, update, deleteon OrderStudyMeeting to ksiegowy
grantselect, insert, update, deleteon OrderCourses to ksiegowy
grantselect, insert, update, deleteon OrderWebinars to ksiegowy
Nauczyciel
create role nauczyciel
grantselecton PRESENCE_LIST to nauczyciel
grantselecton COURSE_MODULES_PRESENCE_LIST to nauczyciel
grantselecton STUDY_MEETINGS_PRESENCE_LIST to nauczyciel
grantupdate (Presence) on StudyMeetingDetails to nauczyciel
grantupdate (Presence) on CourseModulesDetails to nauczyciel
grant execute on AddWebinar to nauczyciel
grantselect, updateon Webinars to nauczyciel
Kierownik kursu
create role kierownik_kursu
grant nauczyciel to kierownik_kursu
grantselecton COURSE_MODULES_ATTENDANCE_SUMMARY to kierownik_kursu
grantselecton COURSES_FINANCIAL_REPORT to kierownik_kursu
grant execute on AddCourse to kierownik_kursu
grant execute on AddCourseModule to kierownik_kursu
grant execute on GetMaxCourseCapacity to kierownik_kursu
grant execute on HowManyCourseVacancies to kierownik_kursu
Kierownik przedmiotu
create role kierownik_przedmiotu
grant kierownik_kursu to kierownik_przedmiotu
grantselecton STUDY_MEETINGS_ATTENDANCE_SUMMARY to kierownik_przedmiotu
grant execute on AddSubject to kierownik_przedmiotu
grant execute on AddStudyMeeting to kierownik_przedmiotu
grant execute on GetSubjectAttendanceForStudent to kierownik_przedmiotu
grantselect, insert, update, deleteon Subject to kierownik_przedmiotu
grantselect, insert, update, deleteon SubjectDetails to kierownik_przedmiotu
grantselect, insert, update, deleteon StudyMeetings to kierownik_przedmiotu
grantselect, insert, update, deleteon StudyMeetingDetails to kierownik_przedmiotu
grant insert on StationaryMeeting to kierownik_przedmiotu
grant insert on OnlineAsyncMeeting to kierownik_przedmiotu
grant insert on OnlineSyncMeeting to kierownik_przedmiotu
Kierownik studiów
create role kierownik_studiow
grant kierownik_przedmiotu to kierownik_studiow
grant execute on AddStudy to kierownik_studiow
grantselect, insert, update, deleteon Studies to kierownik_studiow
grantselect, insert, update, deleteon StudiesDetails to kierownik_studiow
grantselect, insert, update, deleteon Internship to kierownik_studiow
grantselect, insert, update, deleteon InternshipDetails to kierownik_studiow
Osoba odpowiedzialna za praktyki
create role opiekun_praktyk
grant execute on AddInternship to opiekun_praktyk
grant execute on CheckStudentInternships to opiekun_praktyk
grantselect, insert, updateon Internship to opiekun_praktyk
grantselect, insert, updateon InternshipDetails to opiekun_praktyk
Tłumacz
create role tlumacz
grantselecton ALL_FUTURE_EVENTS_LIST to tlumacz
grantselecton Webinars to tlumacz
grantselecton CourseModules to tlumacz
grantselecton StudyMeetings to tlumacz
Kadrowy
create role kadrowy
grant execute on AddEmployee to kadrowy
grant execute on AddStudent to kadrowy
grant execute on AddTranslator to kadrowy
System
create role system
grant execute on AddOrder to system
grant execute on AddOrderDetail to system
Student
create role student
grantselecton ALL_FUTURE_EVENTS_LIST to student
grantselecton NUMBER_OF_PEOPLE_REGISTRED_FOR_FUTURE_EVENTS to student
grant execute on CheckStudentInternships to student
grant execute on GetSubjectAttendanceForStudent to student
grant execute on GetCourseAttendanceForStudent to student
grant execute on HowManyCourseVacancies to student
grant execute on HowManyStudyVacancies to student