Returns true if the passed in pagelock is in the LockList, else false
| 1882 | } |
| 1883 | // Returns true if the passed in pagelock is in the LockList, else false |
| 1884 | bool InLockList(mngs_Pagelock *pl) { |
| 1885 | if (Starting_editor) { |
| 1886 | for (int i = 0; i < Num_locklist; i++) { |
| 1887 | if (LockList[i].pagetype == pl->pagetype) { |
| 1888 | if (!stricmp(LockList[i].name, pl->name)) |
| 1889 | return true; |
| 1890 | } |
| 1891 | } |
| 1892 | } else { |
| 1893 | if ((mng_CheckIfPageOwned(pl, TableUser)) > 0) // DAJ -1FIX |
| 1894 | return true; |
| 1895 | } |
| 1896 | return false; |
| 1897 | } |
| 1898 | // Given a filename, returns the type of primitive it is |
| 1899 | int GetPrimType(const std::filesystem::path &name) { |
| 1900 | int primtype; |
no test coverage detected